college-courses/database/seeders/RoleSeeder.php

26 lines
500 B
PHP
Raw Permalink Normal View History

2024-10-15 10:15:40 +03:00
<?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'],
]);
}
}