first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Segment;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class SegmentSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$sements = [
|
||||
[ 'name' => 'global', 'description' => ''],
|
||||
[ 'name' => 'terrain', 'description' => '']
|
||||
];
|
||||
|
||||
foreach($sements as $st){
|
||||
Segment::create($st);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user