Build: Database setup
This commit is contained in:
22
database/seeders/DepartmentSeeder.php
Normal file
22
database/seeders/DepartmentSeeder.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class DepartmentSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('roles')->insert([
|
||||
['name' => 'Admin'],
|
||||
['name' => 'Coordinator'],
|
||||
['name' => 'Faculty'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user