Using Laravel Passport for Rest API Authentication

Submitted by azazqadir - 2 months ago

To demonstrate the API, I am going to continue the creating the Laravel powered ToDo app. I will use Laravel Passport access token in it. The Github repo for the todoappwithlaravel has been updated to this Passport API version. Source: https://www.cloudways.com/blog/rest-api-laravel-passport-authentication/

public function boot()

   {

       $this->registerPolicies();



       Passport::routes();

   }

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks