Right now I have a form with gender, options and user_id. My public function store (Request $request) looks like this :
public function store (Request $request)
public function store(Re
You can use mass assignment feature by using create() method:
create()
public function store(Request $request) { Appointment::create($request->all()); }
Don't forget to fill all columns in $fillable array in Appointment model:
$fillable
Appointment
protected $fillable = ['gender', 'options', 'user_id', 'another_one'];