Answers for "laravel $fillable"

PHP
2

laravel force delete

Product::find($id)->forceDelete();
Posted by: Guest on December-27-2020
0

laravel get fillable attributes

$model = new Demo();
dd($model->getFillable());
Posted by: Guest on June-18-2020
4

laravel update

$flight = App\Models\Flight::find(1);

$flight->name = 'New Flight Name';

$flight->save();
Posted by: Guest on September-25-2020

Browse Popular Code Answers by Language