Download the PHP package jetwaves/laravel-bootcamp without Composer
On this page you can find all versions of the php package jetwaves/laravel-bootcamp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jetwaves/laravel-bootcamp
More information about jetwaves/laravel-bootcamp
Files in jetwaves/laravel-bootcamp
Package laravel-bootcamp
Short Description A boot camp who initialize a series of tools for starter of laravel 5.5
License MIT
Informations about the package laravel-bootcamp
laravel-bootcamp
A boot camp who initialize a series of tools for starter of laravel 5.5
-
Installation:
-
Run command:
-
Edit config/app.php, add following line into 'providers' array
- Edit '.env', set your database options (database name, username, password)
-
-
Jwt (Json Web Token ) Integration.
-
Initialisation
Run command in console:
-
Test it's working:
- Run in cli.
- Import "Tests/postman/Laravel_Jwt_integration_Test.postman_collection.json" into Postman
-
Run the tests 1-9. You should see following results:
-
test1:
-
test2:
-
test3:
-
test4:
-
test5:
-
test6:
-
test7:
-
test8: (change the 'Authorization' field of the header with 'Bearer '.$tokenReturnedInTest7 )
- test9: (change the 'Authorization' field of the header with 'Bearer '.$tokenReturnedInTest7 )
-
-
Usage:
A simple implicit router protected with jwt is declared in routes/api.php
Routes without jwt protection:
GET http://localhost:8000/api/noauth/ControllerName/snake-form-function-name is served by ControllerNameController->getSnakeFormFunctionName() POST http://localhost:8000/api/noauth/ControllerName/snake-form-function-name is served by ControllerNameController->postSnakeFormFunctionName()
Routes with jwt protection:
GET http://localhost:8000/api/withauth/ControllerName/snake-form-function-name is served by ControllerNameController->getSnakeFormFunctionName() POST http://localhost:8000/api/withauth/ControllerName/snake-form-function-name is served by ControllerNameController->postSnakeFormFunctionName()
Cf. Jetwaves/ Laravel Implicit Router to know more about implicit router for laravel 5.2+
-
Errors and eventual problems:
- To be completed later.
-
All versions of laravel-bootcamp with dependencies
jetwaves/laravel-util Version ^1.0.1
jetwaves/laravel-explorer Version ^1.0.1
jetwaves/laravel-implicit-router Version ^1.1
jetwaves/edit-array-in-file Version ^1.1.4