public function registerPolicies()
    {
        foreach ($this->policies as $key => $value) {
            Gate::policy($key, $value);
        }
    }
public function registerPolicies()
    {
        foreach ($this->policies as $key => $value) {
            Gate::policy($key, $value);
        }
    }
public function registerPolicies ( ) { foreach ( $ this -> policies as $ key => $ value ) { Gate :: policy ( $ key , $ value ) ; } }
I cheated this comes from the AuthServiceProvider extended by the App\Providers\AuthServiceProvider.

Register the application's policies.

@return void
I cheated this comes from the AuthServiceProvider extended by the App \ Providers \ AuthServiceProvider .