<?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
Try composer dump-autoload command on your terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With