database/seeds/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = User::create([
            'name' => 'sys',
            'email' => 'ayoub@gmail.com',
            'password' => bcrypt('12345678'),
            'status' => 1,
            'image' => ''
        ]);
        $role = Role::create(['name' => 'sys']);
        $user->assignRole([$role->id]);
    }
public function run ( ) { $ user = User :: create ( [ 'name' => 'sys' , 'email' => 'ayoub@gmail.com' , 'password' => bcrypt ( '12345678' ) , 'status' => 1 , 'image' => '' ] ) ; $ role = Role :: create ( [ 'name' => 'sys' ] ) ; $ user -> assignRole ( [ $ role -> id ] ) ; }
Run the database seeds.
Run the database seeds .