When `php artisan make:model`, Laravel defaults to `protected $fillable = [];` Add a codelens that shows `Convert to $guarded` if: - [ ] currently opened file is an Eloquent model - [ ] underlying table has an `id` column that is a primary key. The codelens action will be to replace the above with `protected $guraded = ['id']`
When
php artisan make:model, Laravel defaults toprotected $fillable = [];Add a codelens that shows
Convert to $guardedif:idcolumn that is a primary key.The codelens action will be to replace the above with
protected $guraded = ['id']