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