Shell B4ckd00r
Current Dir :
/
home
/
u789730693
/
domains
/
piorasplash.com
/
public_html
/
database
/
seeders
/
Home
Upload
Create Dir
Create File
Curl
Current File : /home/u789730693/domains/piorasplash.com/public_html/database/seeders/MenuTableSeeder.php
<?php namespace Database\Seeders; use App\Libraries\AppLibrary; use App\Models\Menu; use Illuminate\Database\Seeder; class MenuTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $menus = [ [ 'name' => 'Dashboard', 'language' => 'dashboard', 'url' => 'dashboard', 'icon' => 'lab lab-line-dashboard', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Product & Stock', 'language' => 'product_and_stock', 'url' => '#', 'icon' => 'lab lab-item', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Products', 'language' => 'products', 'url' => 'products', 'icon' => 'lab lab-line-items', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Purchase', 'url' => 'purchase', 'language' => 'purchase', 'icon' => 'lab lab-line-add-purchase', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Damages', 'url' => 'damages', 'language' => 'damages', 'icon' => 'lab lab-line-addons', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Stock', 'url' => 'stock', 'language' => 'stock', 'icon' => 'lab lab-line-stock', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ] ], [ 'name' => 'Pos & Orders', 'language' => 'pos_and_orders', 'url' => '#', 'icon' => 'lab lab-pos', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'POS', 'url' => 'pos', 'language' => 'pos', 'icon' => 'lab lab-line-pos', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'POS Orders', 'language' => 'pos_orders', 'url' => 'pos-orders', 'icon' => 'lab lab-line-push-notification', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Online Orders', 'language' => 'online_orders', 'url' => 'online-orders', 'icon' => 'lab lab-line-online-orders', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Return Orders', 'language' => 'return_orders', 'url' => 'return-orders', 'icon' => 'lab lab-line-order-setup', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Return And Refunds', 'language' => 'return_and_refunds', 'url' => 'return-and-refunds', 'icon' => 'lab lab-line-3d-rotate', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ], ], [ 'name' => 'Promo', 'language' => 'promo', 'url' => '#', 'icon' => 'lab ', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Coupons', 'language' => 'coupons', 'url' => 'coupons', 'icon' => 'lab lab-line-coupon', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Promotions', 'language' => 'promotions', 'url' => 'promotions', 'icon' => 'lab lab-line-promotion', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Product Sections', 'language' => 'product_sections', 'url' => 'product-sections', 'icon' => 'lab lab-line-product-section', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ] ], [ 'name' => 'Communications', 'language' => 'communications', 'url' => '#', 'icon' => 'lab ', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Push Notifications', 'language' => 'push_notifications', 'url' => 'push-notifications', 'icon' => 'lab lab-line-notification-alert', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Subscribers', 'language' => 'subscribers', 'url' => 'subscribers', 'icon' => 'lab lab-line-social', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ] ], [ 'name' => 'Users', 'language' => 'users', 'url' => '#', 'icon' => 'lab ', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Administrators', 'language' => 'administrators', 'url' => 'administrators', 'icon' => 'lab lab-line-administrator', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Customers', 'language' => 'customers', 'url' => 'customers', 'icon' => 'lab lab-line-cunstomers', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Employees', 'language' => 'employees', 'url' => 'employees', 'icon' => 'lab lab-line-users', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], ] ], [ 'name' => 'Accounts', 'language' => 'accounts', 'url' => '#', 'icon' => 'lab ', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Transactions', 'language' => 'transactions', 'url' => 'transactions', 'icon' => 'lab lab-line-transactions', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ] ], [ 'name' => 'Reports', 'language' => 'reports', 'url' => '#', 'icon' => 'lab ', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Sales Report', 'language' => 'sales_report', 'url' => 'sales-report', 'icon' => 'lab lab-line-sales-report', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Products Report', 'language' => 'products_report', 'url' => 'products-report', 'icon' => 'lab lab-line-items-report', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ], [ 'name' => 'Credit Balance Report', 'language' => 'credit_balance_report', 'url' => 'credit-balance-report', 'icon' => 'lab lab-line-report', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ] ], [ 'name' => 'Setup', 'language' => 'setup', 'url' => '#', 'icon' => 'lab ', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now(), 'children' => [ [ 'name' => 'Settings', 'language' => 'settings', 'url' => 'settings', 'icon' => 'lab lab-line-settings', 'priority' => 100, 'status' => 1, 'created_at' => now(), 'updated_at' => now() ] ] ] ]; Menu::insert(AppLibrary::associativeToNumericArrayBuilder($menus)); } }
v.01