Support the ongoing development of Laravel.io →
posted 9 years ago
Database
Last updated 2 years ago.
0

Just as a follow up, this is what my files look like

Your alt text here

Your alt text here

Your alt text here

Last updated 9 years ago.
0

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...
Last updated 9 years ago.
0

Yes, I have included the correct use statements.

0

Do you need to do a composer dump-autoload ?

(I was under the impression that app code is autoloaded by Laravel, not composer, though)

0

Doesn't change a thing, unfortunately.

0

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.

0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jweultjes jweultjes Joined 22 Apr 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.