https://github.com/mcmatters/laravel-nullable-attributes
https://github.com/mcmatters/laravel-nullable-attributes
laravel laravel-5-package
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcmatters/laravel-nullable-attributes
- Owner: MCMatters
- Created: 2016-12-27T22:25:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-09T17:25:34.000Z (over 2 years ago)
- Last Synced: 2025-01-31T13:43:49.998Z (over 1 year ago)
- Topics: laravel, laravel-5-package
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel Nullable Attributes
Package for auto generation and population the database columns as nullable.
### Installation
```bash
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.
```php
'providers' => [
McMatters\NullableAttributes\ServiceProvider::class,
]
```
Publish the configuration.
```bash
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.