![]() 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/job-board.corals.io/Corals/modules/SMS/database/seeds/ |
<?php namespace Corals\Modules\SMS\database\seeds; use Carbon\Carbon; use Illuminate\Database\Seeder; class SMSPermissionsDatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \DB::table('permissions')->insert([ // providers [ 'name' => 'SMS::provider.view', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::provider.create', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::provider.update', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::provider.delete', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], //phone-numbers [ 'name' => 'SMS::phone_number.view', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::phone_number.create', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::phone_number.update', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::phone_number.delete', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], //message [ 'name' => 'SMS::message.view', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], //lists [ 'name' => 'SMS::list.view', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::list.create', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::list.update', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'name' => 'SMS::list.delete', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], //admin-permission [ 'name' => 'Administrations::admin.sms', 'guard_name' => config('auth.defaults.guard'), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], ]); } }