dimanche 1 janvier 2017

Unexepected error in laravel method when index method is called

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:

enter image description here

Why am i getting this semi-colon error ??

Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire