mini-aspire/database/seeders/AdminSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Admin::updateOrCreate(
            ['id' => 1, 'email' => 'superadmin@example.com', ],
            [
                'name' => 'Super Admin', 
                'email' => 'superadmin@example.com', 
                'email_verified_at' => null, 
                'password' => Hash::make('superpass'), 
                'remember_token' => null,
            ]
        );
    }
public function run ( ) { Admin :: updateOrCreate ( [ 'id' => 1 , 'email' => 'superadmin@example.com' , ] , [ 'name' => 'Super Admin' , 'email' => 'superadmin@example.com' , 'email_verified_at' => null , 'password' => Hash :: make ( 'superpass' ) , 'remember_token' => null , ] ) ; }
Run the database seeds.
Run the database seeds .