Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
View
:
AuthServiceProvider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Illuminate\Foundation\Support\Providers; use Illuminate\Support\Facades\Gate; use Illuminate\Support\ServiceProvider; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ protected $policies = []; /** * Register the application's policies. * * @return void */ public function registerPolicies() { foreach ($this->policies() as $key => $value) { Gate::policy($key, $value); } } /** * Get the policies defined on the provider. * * @return array */ public function policies() { return $this->policies; } }