Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Probably a typo: Asa - Asaa.
Or, after all, the all method in Asaa is really not defined.$model = Asаa::all();
class User extends Model {}
class User extends Model {
protected $table = 'my_users';
}
There is a suspicion that you provided a code different from what you actually have, firstly. And you have the model and controller named the same there. And when you call all() on a class, it is the controller class that is taken. Whatever it is, or name them differently. Or specify the full name for the model (including the entire namespace). Well, or export the model with an alias
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question