29 lines
597 B
PHP
29 lines
597 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class OptionsSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$options = [
|
|
[
|
|
'name' => 'service_place_selection_manual',
|
|
'value' => true,
|
|
'type' => 'boolean'
|
|
]
|
|
];
|
|
|
|
foreach ($options as $option) {
|
|
$option['default'] = $option['value'];
|
|
\App\Models\Option::create($option);
|
|
}
|
|
}
|
|
}
|