database/seeds/UsersTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user=\App\User::create([
        'name'=>'super',
        'email'=>'ahmed@yahoo.com',
        'password'=>bcrypt('123456'),
        ]);
        $user->attachRole('super_admin');
    }
public function run ( ) { $ user = \ App \ User :: create ( [ 'name' => 'super' , 'email' => 'ahmed@yahoo.com' , 'password' => bcrypt ( '123456' ) , ] ) ; $ user -> attachRole ( 'super_admin' ) ; }
Run the database seeds.
Run the database seeds .
//factory(App\User::class,300)->create();