Implement projects and project keys
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Project;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ProjectSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Project::factory()
|
||||
->count(3)
|
||||
->sequence(
|
||||
['name' => 'Core Platform', 'key' => 'CORE'],
|
||||
['name' => 'Authentication', 'key' => 'AUTH'],
|
||||
['name' => 'Operations', 'key' => 'OPS'],
|
||||
)
|
||||
->create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user