If you’re new to APIs or feel confused about how backend and frontend apps talk to each other, this video is for you. We’ll start with how Laravel handles API routes, and why APIs live in api.php instead of web.php.
By the end of this course, you’ll have a real, working API endpoint that returns JSON — and you’ll understand exactly what’s happening, without any unnecessary theory.
What you’ll learn in this episode:
What an API is (in simple terms)
The difference between web.php and api.php
How Laravel API routing works
How to create your first API endpoint
If you have any questions or problems please leave a comment.
The video shows a slightly older starter kit setup.
The API concepts and workflow shown in the video are still the same & you can follow along with any starter kit version.
If you're starting a new project today, please use the latest starter kits.
Latest installer / setup guide:
https://laravel.com/docs/12.x/starter...