File manager - Edit - /home/linknsbh/cecil-hotel.net/database/seeders/ServiceSeeder.php
Back
<?php namespace Database\Seeders; use Botble\Base\Supports\BaseSeeder; use Botble\Hotel\Models\Service; class ServiceSeeder extends BaseSeeder { public function run(): void { Service::query()->truncate(); $services = [ [ 'name' => 'Wifi', 'price' => 100, 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vel molestie nisl. Duis ac mi leo.', ], [ 'name' => 'Car Rental', 'price' => 30, 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vel molestie nisl. Duis ac mi leo.', ], [ 'name' => 'Satellite TV', 'price' => 50, 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vel molestie nisl. Duis ac mi leo.', ], [ 'name' => 'Sea View', 'price' => 10, 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vel molestie nisl. Duis ac mi leo.', ], [ 'name' => 'Laundry', 'price' => 10, 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vel molestie nisl. Duis ac mi leo.', ], [ 'name' => 'Breakfast', 'price' => 10, 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vel molestie nisl. Duis ac mi leo.', ], ]; foreach ($services as $service) { Service::query()->create($service); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.31 |
proxy
|
phpinfo
|
Settings