In the routes folder you have web.php, but not just that file. We have api.php, channels.php and console.php.
-
web.phphandles HTTP requests from web browsers -
api.phphandles API endpoints. We use it to create an API that can be used for example by a mobile application, or directly by the users (if that’s something you want them to) -
console.phpcontains routes used by the command line interface, Artisan. We can write command line applications for our app, in PHP, and execute them, it’s pretty handy