app/Providers/AuthServiceProvider.php
/**
   * Register any authentication / authorization services.
   *
   * @return void
   */
Register any authentication / authorization services.
@return void
Register any authentication / authorization services . @return void
public function boot()
    {
        $this->registerPolicies();
        Passport::routes();
        Passport::tokensCan([
            'admin' => 'View/Add/Edit/Delete Assets',
            'staff' => 'View Assets',
        ]);
        Passport::setDefaultScope([
            'staff'
        ]);
    }
public function boot ( ) { $ this -> registerPolicies ( ) ; Passport :: routes ( ) ; Passport :: tokensCan ( [ 'admin' => 'View/Add/Edit/Delete Assets' , 'staff' => 'View Assets' , ] ) ; Passport :: setDefaultScope ( [ 'staff' ] ) ; }
Register any authentication / authorization services.
Register any authentication / authorization services .
// Mandatory to define Scope