Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class UsersTableSeeders does not exist [ReflectionException]

    <?php
use Illuminate\Database\Seeder;
use App\User;

class UsersTableSeeders extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
       User::create([
                'name'=>'prakash',
                'username'=>'prakash',
                'email'=>'[email protected]',
                'password'=> bycrypt('pokhrel'),
                'remember_token'=> str_random(10),
            ]);
    }
}

I don't understand why i receiving this error : [ReflectionException] Class UsersTableSeeders does not exist

like image 404
prakash pokhrel Avatar asked May 22 '17 16:05

prakash pokhrel


1 Answers

Try composer dump-autoload command on your terminal.

like image 89
Aarón Gutiérrez Avatar answered Nov 15 '22 02:11

Aarón Gutiérrez