I have a table Events(id) and table EventException(event_id, from_new_date, to_new_date) having event_id is the foreign key of the Events table.
I dont know what happen to this one, when i run i got error in =>.
$events = Events::find($id);
$exception = EventException::create(request()->all(), 'event_id' => $events);
return $exception;
I dont know when i want to get id from table Events and create new item in EventException do i write this correct or not.
Thank you.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire