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()
    {
        $role_user=new Role();
        $role_user->name="User";
        $role_user->description="Customers";
        $role_user->save();
        $role_admin=new Role();
        $role_admin->name="Admin";
        $role_admin->description="Admistration";
        $role_admin->save();
    }
public function run ( ) { $ role_user = new Role ( ) ; $ role_user -> name = " User " ; $ role_user -> description = " Customers " ; $ role_user -> save ( ) ; $ role_admin = new Role ( ) ; $ role_admin -> name = " Admin " ; $ role_admin -> description = " Admistration " ; $ role_admin -> save ( ) ; }
Run the database seeds.
Run the database seeds .