PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
CMS
/
Database
/
Seeders
/
versions
/
v1_2_0
<?php namespace Modules\CMS\Database\Seeders\versions\v1_2_0; use Illuminate\Database\Seeder; use Modules\CMS\Entities\{ Component, ComponentProperty, Page }; class PagesTableSeeder extends Seeder { /** * Auto generated seed file * * @return void */ public function run() { $pageId = Page::insertGetId([ // 'id' => 15, 'name' => 'Fashion V5', 'slug' => 'home-10', 'css' => NULL, 'description' => NULL, 'meta_title' => NULL, 'meta_description' => NULL, 'status' => 'Active', 'type' => 'home', 'layout' => 'fashion_v5', 'default' => 0, ]); $componentId = Component::insertGetId([ // 'id' => 100, 'page_id' => $pageId, 'layout_id' => 10, 'level' => 2, ]); ComponentProperty::insert([ [ // 'id' => 3381, 'component_id' => $componentId, 'name' => 'slider', 'type' => 'string', 'value' => 'fashion-v51', ], [ // 'id' => 3382, 'component_id' => $componentId, 'name' => 'full', 'type' => 'string', 'value' => '1', ], [ // 'id' => 3383, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3384, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3385, 'component_id' => $componentId, 'name' => 'height', 'type' => 'string', 'value' => '749', ], [ // 'id' => 3386, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '0', ] ]); $componentId = Component::insertGetId([ //'id' => 101, 'page_id' => $pageId, 'layout_id' => 10, 'level' => 3, ]); ComponentProperty::insert([ [ // 'id' => 3387, 'component_id' => $componentId, 'name' => 'slider', 'type' => 'string', 'value' => 'fashion-v52', ], [ // 'id' => 3388, 'component_id' => $componentId, 'name' => 'full', 'type' => 'string', 'value' => '1', ], [ // 'id' => 3389, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3390, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3391, 'component_id' => $componentId, 'name' => 'height', 'type' => 'string', 'value' => '903', ], [ // 'id' => 3392, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '0', ] ]); $componentId = Component::insertGetId([ //'id' => 102, 'page_id' => $pageId, 'layout_id' => 10, 'level' => 4, ]); ComponentProperty::insert([ [ // 'id' => 3393, 'component_id' => $componentId, 'name' => 'slider', 'type' => 'string', 'value' => 'fashion-v53', ], [ // 'id' => 3394, 'component_id' => $componentId, 'name' => 'full', 'type' => 'string', 'value' => '1', ], [ // 'id' => 3395, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3396, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3397, 'component_id' => $componentId, 'name' => 'height', 'type' => 'string', 'value' => '631', ], [ // 'id' => 3398, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '0', ] ]); $componentId = Component::insertGetId([ //'id' => 103, 'page_id' => $pageId, 'layout_id' => 10, 'level' => 1, ]); ComponentProperty::insert([ [ // 'id' => 3399, 'component_id' => $componentId, 'name' => 'slider', 'type' => 'string', 'value' => 'fashion-v5-primary', ], [ // 'id' => 3400, 'component_id' => $componentId, 'name' => 'full', 'type' => 'string', 'value' => '1', ], [ // 'id' => 3401, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3402, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3403, 'component_id' => $componentId, 'name' => 'height', 'type' => 'string', 'value' => '750', ], [ // 'id' => 3404, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '0', ] ]); $componentId = Component::insertGetId([ //'id' => 104, 'page_id' => $pageId, 'layout_id' => 10, 'level' => 5, ]); ComponentProperty::insert([ [ // 'id' => 3423, 'component_id' => $componentId, 'name' => 'slider', 'type' => 'string', 'value' => 'fashion-v54', ], [ // 'id' => 3424, 'component_id' => $componentId, 'name' => 'full', 'type' => 'string', 'value' => '1', ], [ // 'id' => 3425, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3426, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3427, 'component_id' => $componentId, 'name' => 'height', 'type' => 'string', 'value' => '631', ], [ // 'id' => 3428, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '0', ] ]); $componentId = Component::insertGetId([ //'id' => 105, 'page_id' => $pageId, 'layout_id' => 10, 'level' => 6, ]); ComponentProperty::insert([ [ // 'id' => 3429, 'component_id' => $componentId, 'name' => 'slider', 'type' => 'string', 'value' => 'fashion-v55', ], [ // 'id' => 3430, 'component_id' => $componentId, 'name' => 'full', 'type' => 'string', 'value' => '1', ], [ // 'id' => 3431, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3432, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '0px', ], [ // 'id' => 3433, 'component_id' => $componentId, 'name' => 'height', 'type' => 'string', 'value' => '631', ], [ // 'id' => 3434, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '0', ] ]); $componentId = Component::insertGetId([ //'id' => 107, 'page_id' => $pageId, 'layout_id' => 8, 'level' => 8, ]); ComponentProperty::insert([ [ // 'id' => 3589, 'component_id' => $componentId, 'name' => 'iconbox', 'type' => 'array', 'value' => '[{"image":"20230508\\\\72911ed50cb98c54b7dd269a763d788d.png","title":"Free Shipping Worldwide","subtitle":"For all orders over $350"},{"image":"20230508\\\\9b51a4ca185894d42c25cc22db2e2b78.png","title":"Secured Online Payment","subtitle":"Payment protection guaranteed"},{"image":"20230508\\\\e28c3efa16347662b4f3f3877dc49741.png","title":"Money Back Guarantee","subtitle":"If goods have problems"}]', ], [ // 'id' => 3590, 'component_id' => $componentId, 'name' => 'sidebox_show', 'type' => 'string', 'value' => '0', ], [ // 'id' => 3591, 'component_id' => $componentId, 'name' => 'sidebox', 'type' => 'array', 'value' => '{"title":"","sidetext":"","description":""}', ], [ // 'id' => 3592, 'component_id' => $componentId, 'name' => 'mt', 'type' => 'string', 'value' => '70px', ], [ // 'id' => 3593, 'component_id' => $componentId, 'name' => 'mb', 'type' => 'string', 'value' => '70px', ], [ // 'id' => 3594, 'component_id' => $componentId, 'name' => 'rounded', 'type' => 'string', 'value' => '1', ] ]); } }
[-] PagesTableSeeder.php
[edit]
[+]
..
[-] ThemeOptionsTableSeeder.php
[edit]
[-] SlidersTableSeeder.php
[edit]