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\Models\User::create([
        'name' => 'super admin',
        'email' => 'admin@domain.com',
        'password' => bcrypt('12345678'),
        ]);
        $user->attachRole('super_admin');
    }
public function run ( ) { $ user = \ App \ Models \ User :: create ( [ 'name' => 'super admin' , 'email' => 'admin@domain.com' , 'password' => bcrypt ( '12345678' ) , ] ) ; $ user -> attachRole ( 'super_admin' ) ; }
Run the database seeds.
Run the database seeds .