class ProductController extends Controller
{
public function store(Request $request)
{
$product = new Product();
return $product->fill($request->all())->doSomething();
}
}
Product.php
Field::make('id')->increments(),
Field::make('status_id')->unsignedInteger()->guarded(),
// many others in here ...
I just want guard 'status_id', but i got an error ...
Add [status_id] to fillable property to allow mass assignment on [App\\Product]
But if guarded is declared as default way works fine
ProductController.php
Product.php
I just want guard 'status_id', but i got an error ...
But if guarded is declared as default way works fine