Route is important

Submitted by admin123 - 1 week ago

The most basic Laravel routes accept a URI and a Closure, providing a very simple and expressive method of defining routes.

All Laravel routes are defined in your route files,
which are located in the routes directory. These files are automatically loaded by the framework. 
The routes/web.php file defines routes that are for your web interface. 
These routes are assigned the web middleware group, which provides features like session state 
and CSRF protection. The routes in routes/api.php are stateless and are assigned the api middleware
comments powered by Disqus