$permission[0], 'entity' => $permission[1], 'permission' => $permission[2] ]; } app('db')->table('permissions')->truncate(); app('db')->table('permissions')->insert($permissions);