mercredi 25 mai 2016

Laravel 5.2 using namespaces

I've just upgraded my application from Laravel 4.2 to Laravel 5.2 and i'm having some trouble making everything to work. Currently i'm having a problem with classes like Auth, Lang, and all of my models. The problem is that when i go /public/ i get a Fatal error: Class 'Lang' not found. I've fixed this by adding use Lang; to my Controller but then another class is not found unitl i add every to use statement. This also goes for all of my models that are placed in app/Modules and are namespaced with App\Models My question is next, do i need to use the use statement for every class i want to load or is there a normal way? Thanks



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

Aucun commentaire:

Enregistrer un commentaire