Laravel Routing Basics: web.php, api.php & Resource Routes
Laravel routing looks simple until the day you ask "why does this route return a CSRF error" or "why did my API route just lose the user's session." Both questions...
Dasun Kalupahana
5 min read