dev-master
9999999-devThis is a starter package for a laravel api using JWT authentication and the Dingo api package
MIT
The Requires
The Development Requires
by Samuel Kubai
laravel api starter
This is a starter package for a laravel api using JWT authentication and the Dingo api package
This is a laravel package that helps you start of building a laravel API. It contains useful command generators to generate various files for your API and is completely configurable. The generators include:
* starter:init
* starter:model <name> --fillable[=FILLABLE] --migration --relationships[=RELATIONSHIPS] --repository --schema[=SCHEMA] --soft-deletes --table[=TABLE] --transformer
* starter:migration <name> --schema[=SCHEMA] --soft-deletes --model[=MODEL]
* starter:controller <name> --automate --except[=EXCEPT] --only[=ONLY] --plain --repository[=REPOSITORY] --resource --transformer[=TRANSFORMER]
* starter:repository <name> --model
* starter:transformer <name> --fields[=FIELDS] --includes[=INCLUDES] --model[=MODEL]
, (*2)
Add, (*3)
{ "minimum-stability" : "dev", "prefer-stable" : true }
to your composer.json file., (*4)
Run in terminal, (*5)
composer require ralphowino/restful-api-helper 1.0.x-dev.
Add the service provider in config/app.php
:, (*6)
Ralphowino\ApiStarter\ApiStarterServiceProvider::class
Publish the package's assets by running, (*7)
php artisan vendor:publish --provider="Ralphowino\ApiStarter\ApiStarterServiceProvider"
Initialize the project by running, (*8)
php artisan starter:init
Select directories to save the generated files in., (*9)
NB: Just press enter for every question to retain the default., (*10)
Generate a new jwt token for the application by running, (*11)
php artisan jwt:generate
AND YOU ARE READY TO GO!, (*12)
For more documentation on the package checkout https://ralphowino.github.io/restful-api-helper/, (*13)
This is a starter package for a laravel api using JWT authentication and the Dingo api package
MIT
laravel api starter