Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/Corals/modules/Entity/database/seeds/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/Corals/modules/Entity/database/seeds/EntityMenuDatabaseSeeder.php
<?php

namespace Corals\Modules\Entity\database\seeds;

use Illuminate\Database\Seeder;

class EntityMenuDatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $entity_menu_id = \DB::table('menus')->insertGetId([
            'parent_id' => 1, // admin
            'key' => 'entity',
            'url' => null,
            'active_menu_url' => 'entity/*',
            'name' => 'Entity',
            'description' => 'Entity Menu Item',
            'icon' => 'fa fa-globe',
            'target' => null,
            'roles' => '["1"]',
            'order' => 0,
        ]);

        // seed children menu
        \DB::table('menus')->insert([
            [
                'parent_id' => $entity_menu_id,
                'key' => null,
                'url' => config('entity.models.entity.resource_url'),
                'active_menu_url' => config('entity.models.entity.resource_url').'*',
                'name' => 'Entities',
                'description' => 'Entities List Menu Item',
                'icon' => 'fa fa-cube',
                'target' => null,
                'roles' => '["1"]',
                'order' => 0,
            ],
        ]
        );
    }
}

Spamworldpro Mini