Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/database/seeders/RegionSeeder.php
Назад
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\Region; class RegionSeeder extends Seeder { public function run() { $regions = [ ['name' => 'Southeast Asia', 'link_page' => '#', 'short_description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'], ['name' => 'Asia Pacific', 'link_page' => '#', 'short_description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'], ['name' => 'Caribbean', 'link_page' => '#', 'short_description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'], ['name' => 'The Americas', 'link_page' => '#', 'short_description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'], ['name' => 'Indian Ocean, Africa & Middle East', 'link_page' => '#', 'short_description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'], ['name' => 'Europe & the Polar Regions', 'link_page' => '#', 'short_description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'], ]; foreach ($regions as $region) { Region::create($region); } $regionsSoutheastAsia = [ ['name' => 'Indonesia', 'parent_id' => 1], ['name' => 'Philippines', 'parent_id' => 1], ['name' => 'Thailand', 'parent_id' => 1], ['name' => 'East Timor', 'parent_id' => 1], ['name' => 'Borneo', 'parent_id' => 1], ['name' => 'Malaysia', 'parent_id' => 1], ['name' => 'Myanmar', 'parent_id' => 1], ]; foreach ($regionsSoutheastAsia as $region) { Region::create($region); } $regionsAsiaPacific = [ ['name' => 'Fiji', 'parent_id' => 2], ['name' => 'French Polynesia', 'parent_id' => 2], ['name' => 'Micronesia', 'parent_id' => 2], ['name' => 'Australia', 'parent_id' => 2], ['name' => 'Papua New Guinea', 'parent_id' => 2], ['name' => 'Solomon Islands', 'parent_id' => 2], ['name' => 'Tonga', 'parent_id' => 2], ]; foreach ($regionsAsiaPacific as $region) { Region::create($region); } $regionsCaribbean = [ ['name' => 'Carribbean', 'parent_id' => 3], ]; foreach ($regionsCaribbean as $region) { Region::create($region); } $regionsTheAmericas = [ ['name' => 'Mexico', 'parent_id' => 4], ['name' => 'Socorro Islands', 'parent_id' => 4], ['name' => 'Galapagos', 'parent_id' => 4], ['name' => 'USA', 'parent_id' => 4], ['name' => 'Costa Rica', 'parent_id' => 4], ['name' => 'Hawaii', 'parent_id' => 4], ['name' => 'Colombia', 'parent_id' => 4], ]; foreach ($regionsTheAmericas as $region) { Region::create($region); } $regionsIndianOceanAfricaMiddleEast = [ ['name' => 'Indian Ocean', 'parent_id' => 5], ['name' => 'Africa', 'parent_id' => 5], ['name' => 'Red Sea & Middle East', 'parent_id' => 5], ]; foreach ($regionsIndianOceanAfricaMiddleEast as $region) { Region::create($region); } $regionsEuropeThePolarRegion = [ ['name' => 'Europe', 'parent_id' => 6], ['name' => 'Arctic', 'parent_id' => 6], ['name' => 'Antarcatica', 'parent_id' => 6], ]; foreach ($regionsEuropeThePolarRegion as $region) { Region::create($region); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка