Try using \Page::model (be sure to include the backslash "") a Laravel 5 app works in a namespaced environment.
Thanks,
I tried $row = \Page::where('zone_id','=',4)->first()
But it still fails with Class 'Page' not found
I resolved this using \App\Page::where('zone_id','=',4)->first()
Thank you
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community