September 2017
Intermediate to advanced
244 pages
6h 44m
English
In Lumen, by default, routes live in /routes/web.php. I said by default because this path can be changed. Anyway, go to routes/web.php and look into it. You will see that it is returning a response by itself and not pointing towards any controller. So, you should know that it is up to route whether it returns a response or uses the controller for that. However, note that returning a response from route closure only makes sense if there isn't much logic involved. In our case, we will be mostly using controllers.
Here is how our routes will look when we add our first route:
<?php/*|----------------------------------------------------------------| Application Routes|---------------------------------------------------------------- ...
Read now
Unlock full access