芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/database/seeders/Admin/ModuleSettingSeeder.php
'Send Money', ModuleSetting::RECEIVE_MONEY => 'Receive Money', ModuleSetting::REMITTANCE_MONEY => 'Remittance Money', ModuleSetting::ADD_MONEY => 'Add Money', ModuleSetting::WITHDRAW_MONEY => 'Withdraw Money', ModuleSetting::MAKE_PAYMENT => 'Make Payment', ModuleSetting::VIRTUAL_CARD => 'Virtual Card', ModuleSetting::BILL_PAY => 'Bill Pay', ModuleSetting::MOBILE_TOPUP => 'Mobile Topup' ]; $create = []; foreach($data as $slug => $item) { $create[] = [ 'admin_id' => 1, 'slug' => $slug, 'user_type' => "USER", 'status' => true, 'created_at' => now(), ]; } AdminModuleSetting::insert($create); //make module for merchant $data = [ ModuleSetting::MERCHANT_RECEIVE_MONEY => 'Merchant Receive Money', ModuleSetting::MERCHANT_WITHDRAW_MONEY => 'Merchant Withdraw Money', ModuleSetting::MERCHANT_APIKEY => 'Merchant API Key', ModuleSetting::MERCHANT_GATEWAY => 'Merchant Gateway Settings' ]; $create = []; foreach($data as $slug => $item) { $create[] = [ 'admin_id' => 1, 'slug' => $slug, 'user_type' => "MERCHANT", 'status' => true, 'created_at' => now(), ]; } AdminModuleSetting::insert($create); } }