Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/database/seeders/SectionSeeder.php
Назад
<?php namespace Database\Seeders; use App\Models\Section; use Illuminate\Database\Seeder; class SectionSeeder extends Seeder { /** * Run the database seeds. */ public function run() { $baseUrl = env('APP_URL') . '/pages'; Section::create([ 'title' => 'The app where experts make your', 'description' => 'travel dreams come true.', 'url' => '', 'page_id' => 1, ]); Section::create([ 'title' => 'Receive special offers every week in your inbox!', 'description' => '', 'url' => '', 'page_id' => 1, ]); Section::create([ 'title' => 'Lorem Ipsum is simply dummy', '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. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software likeversions of Lorem Ipsum.', 'url' => '', 'page_id' => 1, ]); $lrt1 = Section::create([ 'title' => null, 'description' => null, 'page_id' => 1, ]); $lrt1->addMediaFromUrl("{$baseUrl}/lrt1.png") ->toMediaCollection('files'); $lrt2 = Section::create([ 'title' => null, 'description' => null, 'page_id' => 1, ]); $lrt2->addMediaFromUrl("{$baseUrl}/lrt2.png") ->toMediaCollection('files'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка