protected storeModel ( |
||
$model | ||
$attributes | array | |
Résultat |
protected function storeModel(Model $model, array $attributes = []) : Model
{
return $model->create(array_merge(['name' => 'Mango', 'price' => 10, 'is_rotten' => false], $attributes));
}