database/seeds/RoleTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $admin = new Role();
        $admin->name         = 'kit_admin';
        $admin->display_name = 'Kit Admin'; 
        $admin->description  = 'Admin of this application'; 
        $admin->save();
        $rhq = new Role();
        $rhq->name         = 'central';
        $rhq->display_name = 'CENTRAL Level'; 
        $rhq->description  = 'Regional Head Quarter'; 
        $rhq->save();
        $bojso = new Role();
        $bojso->name         = 'formation';
        $bojso->display_name = 'FORMATION Level'; 
        $bojso->description  = 'Upper then BQMS'; 
        $bojso->save();
        $quarterMaster = new Role();
        $quarterMaster->name         = 'quarter_master';
        $quarterMaster->display_name = 'Quarter Master'; 
        $quarterMaster->description  = 'Upper then Unit. It will handle all of the unit request!'; 
        $quarterMaster->save();
        $bqms = new Role();
        $bqms->name         = 'unit';
        $bqms->display_name = 'UNIT Level'; 
        $bqms->description  = 'Upper then CQMS'; 
        $bqms->save();
        $cqms = new Role();
        $cqms->name         = 'company';
        $cqms->display_name = 'Company Level'; 
        $cqms->description  = 'Upper then Solder'; 
        $cqms->save();
        $solder = new Role();
        $solder->name         = 'solder';
        $solder->display_name = 'SOLDER'; 
        $solder->description  = 'Lowest level user'; 
        $solder->save();
    }
public function run ( ) { $ admin = new Role ( ) ; $ admin -> name = 'kit_admin' ; $ admin -> display_name = 'Kit Admin' ; $ admin -> description = 'Admin of this application' ; $ admin -> save ( ) ; $ rhq = new Role ( ) ; $ rhq -> name = 'central' ; $ rhq -> display_name = 'CENTRAL Level' ; $ rhq -> description = 'Regional Head Quarter' ; $ rhq -> save ( ) ; $ bojso = new Role ( ) ; $ bojso -> name = 'formation' ; $ bojso -> display_name = 'FORMATION Level' ; $ bojso -> description = 'Upper then BQMS' ; $ bojso -> save ( ) ; $ quarterMaster = new Role ( ) ; $ quarterMaster -> name = 'quarter_master' ; $ quarterMaster -> display_name = 'Quarter Master' ; $ quarterMaster -> description = 'Upper then Unit. It will handle all of the unit request!' ; $ quarterMaster -> save ( ) ; $ bqms = new Role ( ) ; $ bqms -> name = 'unit' ; $ bqms -> display_name = 'UNIT Level' ; $ bqms -> description = 'Upper then CQMS' ; $ bqms -> save ( ) ; $ cqms = new Role ( ) ; $ cqms -> name = 'company' ; $ cqms -> display_name = 'Company Level' ; $ cqms -> description = 'Upper then Solder' ; $ cqms -> save ( ) ; $ solder = new Role ( ) ; $ solder -> name = 'solder' ; $ solder -> display_name = 'SOLDER' ; $ solder -> description = 'Lowest level user' ; $ solder -> save ( ) ; }
Run the database seeds.
Run the database seeds .
// optional // optional // optional // optional // optional // optional // optional // optional // optional // optional // optional // optional // optional // optional