Hey,
Have you run a composer dumpautoload -o since you added the class?
If that's not it, how are you calling the methods that it's saying are undefined? From a controller? Could you show the code?
Sam
I attempted to do Report::create([...]); in DatabaseSeeder.php which resulted in create not found, and Auth::user()->account->reports (reports() is $this->hasMany('Report')) in a controller, which resulted in newQuery not found.
I did try running dump-autoload to no avail.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community