In Laravel 4, I could go:
Show::all();
But in Laravel 5, I have to go:
\Show::all();
or
\App\Models\Show::all();
(I prefer to keep all of my models in a Models folder inside App.
Is there a way around this? The Laravel 4 example above is cleaner.
So if I understand correctly, at the top of the controller, I'll need to do the following for each model:
use \App\Models\Show;
Is that right?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community