diff options
author | Marvin Borner | 2018-06-30 14:37:53 +0200 |
---|---|---|
committer | Marvin Borner | 2018-06-30 14:37:53 +0200 |
commit | dfcb5b1c4e8cb1f749dc47e7d310b1d0891c8eeb (patch) | |
tree | 15a8ca76bb09b019f3a0a9981de4fef8ee2d5f26 /app/Providers/AuthServiceProvider.php | |
parent | fb063381707ccd624b1e31734ab0898d23ecd7bd (diff) |
Began Laravel environment
Diffstat (limited to 'app/Providers/AuthServiceProvider.php')
-rw-r--r-- | app/Providers/AuthServiceProvider.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php new file mode 100644 index 0000000..9784b1a --- /dev/null +++ b/app/Providers/AuthServiceProvider.php @@ -0,0 +1,30 @@ +<?php + +namespace App\Providers; + +use Illuminate\Support\Facades\Gate; +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. + * + * @return void + */ + public function boot() + { + $this->registerPolicies(); + + // + } +} |