Larave – ReflectionException Class TableSeeder does not exist

Even if call the seeder properly in DatabaseSeeder, you have to dump autoload

composer dump-autoload

after run this command try artisan db:seed.

Now it should work fine.


Get row from parent table where does not have children mysql – Laravel

You can get row from parents table which does not have child records in another table as follows

->whereNotExists(function($query) { $query->select(DB::raw(1))->from('childTable')->whereRaw(' ='); })->get();