ned/database/seeds/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
         $role=new Role();
         $role->name="admin";
         $role->slug=Str::slug("admin");
         $role->save();
         $role=new Role();
         $role->name="user";
         $role->slug=Str::slug("user");
         $role->save();
         $role=new Role();
         $role->name="provider";
         $role->slug=Str::slug("provider");
         $role->save();
         $role=new Role();
         $role->name="organization";
         $role->slug=Str::slug("organization");
         $role->save();
          $role=new Role();
          $role->name="provider_user";
          $role->slug=Str::slug("provider_user");
          $role->save();
         $role=new Role();
         $role->name="organization_user";
         $role->slug=Str::slug("organization_user");
         $role->save();
    }
public function run ( ) { $ role = new Role ( ) ; $ role -> name = " admin " ; $ role -> slug = Str :: slug ( " admin " ) ; $ role -> save ( ) ; $ role = new Role ( ) ; $ role -> name = " user " ; $ role -> slug = Str :: slug ( " user " ) ; $ role -> save ( ) ; $ role = new Role ( ) ; $ role -> name = " provider " ; $ role -> slug = Str :: slug ( " provider " ) ; $ role -> save ( ) ; $ role = new Role ( ) ; $ role -> name = " organization " ; $ role -> slug = Str :: slug ( " organization " ) ; $ role -> save ( ) ; $ role = new Role ( ) ; $ role -> name = " provider_user " ; $ role -> slug = Str :: slug ( " provider_user " ) ; $ role -> save ( ) ; $ role = new Role ( ) ; $ role -> name = " organization_user " ; $ role -> slug = Str :: slug ( " organization_user " ) ; $ role -> save ( ) ; }
Run the database seeds.
Run the database seeds .
//Role Admin  1 //Role User  2 //Role Provider 3 // Role Organization 4 // Role Organization 5 // Role Organization 6