Answer the question
In order to leave comments, you need to log in
How to use models in layout Laravel 5.2?
I have a Menus model where menu items are stored. In the main application template, I try to call Menus::fierst() or Menus::all(), I get a message that the Menus class was not found. How can one use Active Record in layout laravel 5.2?
Answer the question
In order to leave comments, you need to log in
Must be specified along with the namespace. For example \App\Menus::first()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question