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.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hCtH7f
via IFTTT

Aucun commentaire:

Enregistrer un commentaire