Routes are use to define any pages url and logics. Laravel routes are in the routes folders, web.php
file and api.php
file. web.php
file is the main route file where all the routes of a web page is defined.
Laravel has several types of Routes – get
, post
, put
, delete
, patch