Laravel API starter Kit will provide you with the tools for making API's that everyone will love, API Authentication is already provided with passport.
Here is a list of the packages installed:
To install the project you can use composer
composer create-project joselfonseca/laravel-api new-api
Then run composer install
again and the error should be gone.
Modify the .env file to suit your needs
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:JqyMTmt5qr1CW6BH+GG+4iKfU4RiNjZTLy33TdTT7+4=
API_STANDARDS_TREE=vnd
API_SUBTYPE=api
API_PREFIX=api
API_VERSION=v1
API_DEBUG=true
DB_HOST=localhost
DB_DATABASE=laravel_api
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
When you have the .env with your database connection set up you can run your migrations
php artisan migrate
Then run php artisan passport:install
Run php artisan app:install
and fill out the information of the admin user.
You should be done with the basic installation and configuration.
Navigate to the project root and run vendor/bin/phpunit
after installing all the composer dependencies and after the .env file was created.
The Laravel API Starter kit is open-sourced software licensed under the MIT license