Skip to content

Instantly share code, notes, and snippets.

@tobyokeke
Created April 19, 2020 20:16
Show Gist options
  • Save tobyokeke/4446b0ea335253861439543d1520a0de to your computer and use it in GitHub Desktop.
Save tobyokeke/4446b0ea335253861439543d1520a0de to your computer and use it in GitHub Desktop.
<?php
public function boot()
{
$this->registerPolicies();
Passport::routes();
Passport::tokensCan([
'staff' => 'Access Admin Backend',
'customer' => 'Access Customer App',
'role' => 'Description for role',
]);
Passport::setDefaultScope([
'customer',
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment