26 lines
500 B
PHP
26 lines
500 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use App\Models\Role;
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
use Illuminate\Support\Str;
|
||
|
|
||
|
class RoleSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*/
|
||
|
public function run(): void
|
||
|
{
|
||
|
//
|
||
|
DB::table('roles')->insert([
|
||
|
['name' => 'student'],
|
||
|
['name' => 'author'],
|
||
|
['name' => 'admin'],
|
||
|
]);
|
||
|
}
|
||
|
}
|