Just as a follow up, this is what my files look like
Have you included the necessary use statements at the top of the seeder files? For example;
use Illuminate\Database\Seeder;
use App\Tag; // whatever this statement should read...
Do you need to do a composer dump-autoload
?
(I was under the impression that app code is autoloaded by Laravel, not composer, though)
At times like these I usually make a new blank class and see if I can access / run that. If it works, I then move all my code over.
So, someone on the internet suggested I run php artisan optimize
and it solved all my problems. If someone could tell my why it would be appreciated.
Anyway, marking as solved now.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community