mcmatters / laravel-nullable-attribute
Laravel nullable attributes
Installs: 1 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
- composer/composer: ^1.5
- doctrine/dbal: ^2.5
- illuminate/config: ^5.2 || 6.* || 7.* || 8.* || 9.* || 10.*
- illuminate/console: ^5.2 || 6.* || 7.* || 8.* || 9.* || 10.*
- illuminate/database: ^5.2 || 6.* || 7. || 8.* || 9.* || 10.*
- illuminate/filesystem: ^5.2 || 6.* || 7. || 8.* || 9.* || 10.*
- illuminate/support: ^5.2 || 6.* || 7.* || 8.* || 9.* || 10.*
README
Package for auto generation and population the database columns as nullable.
Installation
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' => [ McMatters\NullableAttributes\ServiceProvider::class, ]
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.
Requirements
This package requires php 7.0
or higher and Laravel 5.2
or higher. It was tested with Laravel 5.2
and higher.
Usage
You need to run the command php artisan nullable-attributes:cache
every time, when you rebuild your database schema.