database/seeds/SuperAdmin.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = new User();
        $user->name='OrangeBox';
        $user->secret_id='orange007';
        $user->password=bcrypt("orange007");
        $user->save();
        $rootRole = Role::where('name','=','kit_admin')->first();
        $user->attachRole($rootRole);
    }
public function run ( ) { $ user = new User ( ) ; $ user -> name = 'OrangeBox' ; $ user -> secret_id = 'orange007' ; $ user -> password = bcrypt ( " orange007 " ) ; $ user -> save ( ) ; $ rootRole = Role :: where ( 'name' , '=' , 'kit_admin' ) -> first ( ) ; $ user -> attachRole ( $ rootRole ) ; }
Run the database seeds.
Run the database seeds .