Development environment Laravel5.5
Laravel5.5 has introduced as API development a separate stateless routing file api.php, in which we can define the routes required by the interface
Define routes and test them
Note :(here we will note that in version 5.5, routes in the api.php file are automatically prefixed with “API”);
To add version numbers to routes, you can change this prefix as shown below:
Introduce custom middleware
1. Customize middleware files
2. Register middleware files
3. Used in routes
Test the effectiveness of middleware
This is the end of simple API development with Laravel5.5 implementation.