This is an article relates on the development of a web-based application using Laravel framework. It is about how to print the possible and available routes which can be used and executed to access certain pages using certain URL address.
To be able to print any available and possible URL address which is provided in the web-based application using Laravel as its framework, a built-in utility such as ‘artisan’ can be very useful to fullfil that purpose. Below is an attempt to do that :
root@hostname:/var/www/html/laravel-project# php artisan routes [Symfony\Component\Console\Exception\CommandNotFoundException] Command "routes" is not defined. Did you mean one of these? route:cache route:clear route:list
In the above output command, there are actually several possibilities which can be used and it will affect or functioning for different purpose.
For the above purpose which is printing the available and possible route of a web-based application developed using Laravel framework, below is the correct execution command :