/app/Providers/AuthServiceProvider.php
https://bitbucket.org/mdoviedor/hotelium · PHP · 25 lines · 13 code · 4 blank · 8 comment · 0 complexity · 453967845003b8ea30898f592d0e75e3 MD5 · raw file
- <?php
- namespace App\Providers;
- use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
- class AuthServiceProvider extends ServiceProvider
- {
- /**
- * The policy mappings for the application.
- *
- * @var array
- */
- protected $policies = [
- 'App\Model' => 'App\Policies\ModelPolicy',
- ];
- /**
- * Register any authentication / authorization services.
- */
- public function boot()
- {
- $this->registerPolicies();
- }
- }