Laravel - Database - Overriding Attributes
If you would like to override some of the default values of your models, you may pass an array of values to the
make method. Only the specified attributes will be replaced while the rest of the attributes remain set to their default values as specified by the factory:
$user = User::factory()->make([ 'name' => 'Abigail Otwell', ]);
state method may be called directly on the factory instance to perform an inline state transformation:
$user = User::factory()->state([ 'name' => 'Abigail Otwell', ])->make();
Mass assignment protection is automatically disabled when creating models using factories.