PHP code example of jrbarros / laravel-update-fillable
1. Go to this page and download the library: Download jrbarros/laravel-update-fillable library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jrbarros / laravel-update-fillable example snippets
class User extends Model
{
protected $nonFillable = ['password'];
protected $fillable = ['name', 'email'];
}
bash
php artisan update:fillable
bash
php artisan update:fillable ModelName
bash
php artisan update:fillable --directories=app/Models