database/seeds/UserSeed.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $items = [
            ['id' => 1, 'name' => 'Admin', 'email' => 'admin@admin.com', 'password' => '$2y$10$7CBUWcHPk5Gba/X2.d8jLubtOr23KC6xX/0lZ02fnz9bFQRyM8YhO', 'role_id' => 1, 'remember_token' => '',],
        ];
        foreach ($items as $item) {
            \App\User::create($item);
        }
    }
public function run ( ) { $ items = [ [ 'id' => 1 , 'name' => 'Admin' , 'email' => 'admin@admin.com' , 'password' => '$2y$10$7CBUWcHPk5Gba/X2.d8jLubtOr23KC6xX/0lZ02fnz9bFQRyM8YhO' , 'role_id' => 1 , 'remember_token' => '' , ] , ] ; foreach ( $ items as $ item ) { \ App \ User :: create ( $ item ) ; } }
Run the database seeds.
Run the database seeds .