URL Shortener 1.0
A Laravel-based URL shortener application
Chargement...
Recherche...
Aucune correspondance
AuthServiceProvider.php
Aller à la documentation de ce fichier.
1<?php
2
3namespace App\Providers;
4
5use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
6use Illuminate\Support\Facades\Gate;
9
10class AuthServiceProvider extends ServiceProvider
11{
17 protected $policies = [
18 ShortUrl::class => ShortUrlPolicy::class,
19 ];
20
24 public function boot(): void
25 {
26 $this->registerPolicies();
27
28 //
29 }
30}
boot()
Register any authentication / authorization services.