mini-aspire/database/seeders/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        LaravelRole::upsert([
                ['name' => 'superadmin', 'guard_name' => 'admin'],
                ['name' => 'manager', 'guard_name' => 'admin'],
                ['name' => 'employee', 'guard_name' => 'admin'],
            ], 
            ['name', 'guard_name'], 
            ['name', 'guard_name']  
        );
    }
public function run ( ) { LaravelRole :: upsert ( [ [ 'name' => 'superadmin' , 'guard_name' => 'admin' ] , [ 'name' => 'manager' , 'guard_name' => 'admin' ] , [ 'name' => 'employee' , 'guard_name' => 'admin' ] , ] , [ 'name' , 'guard_name' ] , [ 'name' , 'guard_name' ] ) ; }
Run the database seeds.
Run the database seeds .
// condition // Update fields