This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel nullable attributes

v1.1 2020-06-14 09:50 UTC

This package is auto-updated.

Last update: 2020-06-14 09:51:32 UTC


Package for auto generation and population the database columns as nullable.


composer require mcmatters/laravel-nullable-attributes

If you use Laravel 5.5 or higher you may skip this step.

Include the service provider within your config/app.php file.

'providers' => [

Publish the configuration.

php artisan vendor:publish --provider="McMatters\NullableAttributes\ServiceProvider"

Then open the config/nullable-attributes.php and configure paths where your models are locating.


This package requires php 7.0 or higher and Laravel 5.2 or higher. It was tested with Laravel 5.2 and higher.


You need to run the command php artisan nullable-attributes:cache every time, when you rebuild your database schema.