Build a Forum with GraphQL Powered API in Laravel — [Part 2] Auth

Mihai Solomon
Apr 18 · 5 min read

In this part we are going to cover the authentication for the user. For this we are going to use Laravel passport. Run the following command in order to install the package.

composer require laravel/passport

Now let’s configure each of the package starting with Laravel Passport, for that we are going to first run the migrations.

php artisan migrate