Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 22, 2020 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/cea5e7aac7cd7eaea745d996d6edc7ab to your computer and use it in GitHub Desktop.
Save parzibyte/cea5e7aac7cd7eaea745d996d6edc7ab to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Laravel\Passport\Passport;
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();
Passport::routes();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment