File "AuthServiceProvider.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/laravel/framework/src/Illuminate/View/AuthServiceProvider.php
File size: 724 bytes
MIME-type: text/x-php
Charset: utf-8
<?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;
}
}