Generic API template for Kairnial projects.
dynamics-unlimited/laravel-api-template is a Laravel package for generic api template for kairnial projects..
It currently has 0 GitHub stars and 26 downloads on Packagist (latest version 1.0.1).
Install it with composer require dynamics-unlimited/laravel-api-template.
Discover more Laravel packages by dynamics-unlimited
or browse all Laravel packages to compare alternatives.
Last updated
Notifications preferences micro-service
init-db.sh script (adjust the user and database name inside)composer install
php artisan migrate
php artisan db:seed
Use composer to create a new project based on this template using:
composer create-project dynamics-unlimited/laravel-api-template <local-directory>
Copy/paste .env.example then rename the new file into '.env'. Update the content of the file according to your environment.
Copy the public key for the appropriate environment to storage/app/keys/public (public being a file).
To generate the api documentation use:
php artisan l5-swagger:generate
The swagger documentation is accessible using this route {{url}}/api/documentation
The redoc documentation is accessible using this route {{url}}/api/redoc
Execute the following command:
php artisan l5-swagger:generate