Learn how to develop Laravel 10 REST API using Passport authentication application
The complete step by step guide is available on my blog. AllPHPTricks Laravel 10 Passport API authentication
Make sure that you have setup the environment properly. You will need minimum PHP 8.1, PHP’s Sodium Extension, MySQL/MariaDB, and composer.
- Download the project (or clone using GIT)
- Copy
.env.example
into.env
and configure your database credentials - Go to the project's root directory using terminal window/command prompt
- Run
composer install
- Set the application key by running
php artisan key:generate --ansi
- Run migrations
php artisan migrate
- Start local server by executing
php artisan serve