I have the following code in my Notices controller:
public function index() {
$notices = Notice::all();
return view('notices.index' , compact('notices'));
}
Now as soon as i get the route that calls the index method in my controller i get the following error:
Why am i getting this semi-colon error ??
Thank you.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire