Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
22 lines
505 B
PHP
22 lines
505 B
PHP
<?php
|
|
|
|
use App\Repositories\Role;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class RolesTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
// Role::truncate();
|
|
Role::create(['name' => 'admin', 'color' => 'error']);
|
|
Role::create(['name' => 'operator', 'color' => 'warning']);
|
|
Role::create(['name' => 'user', 'color' => 'grey']);
|
|
Role::create(['name' => 'member', 'color' => 'blue']);
|
|
}
|
|
}
|