Skip to content

Instantly share code, notes, and snippets.

@sadam1807
Created June 30, 2019 04:58
Show Gist options
  • Save sadam1807/77d77b92a8eb39618d6b1f93d053080a to your computer and use it in GitHub Desktop.
Save sadam1807/77d77b92a8eb39618d6b1f93d053080a to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Laravel\Passport\Passport;
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();
//
Passport::routes();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment