Course Overview
APIs are the backbone of modern applications. Mobile apps, frontend frameworks like React and Vue, and third-party systems all rely on powerful, secure, and well-structured APIs.
In this course, you will learn how to build professional REST APIs using PHP Laravel, following real-world backend development practices used in modern companies.
This is not a theory-only course. You will build real API features step by step, understand why things are done in a certain way, and learn how backend developers actually think when designing APIs.
We start from the fundamentals — what APIs are, how REST works, and how requests and responses are structured — then gradually move into real implementation using Laravel 12, MySQL, and Postman.
Throughout the course, you will build a complete API system including authentication, relationships, file uploads, pagination, filtering, searching, sorting, API versioning, rate limiting, and proper API documentation.
Everything is explained in a simple, clear, and beginner-friendly manner, but the final result is a production-ready API structure that you can confidently use in real projects, freelance work, or job interviews.
This course focuses on clean code, best practices, and scalability, so you don’t just learn how to “make it work”, but how to build APIs the right way.
What you will learn
By the end of this course, you will be able to:
Understand what APIs and REST APIs are and how they work
Build REST APIs using PHP Laravel 12
Design clean and consistent API endpoints
Work correctly with HTTP methods (GET, POST, PUT, PATCH, DELETE)
Structure professional JSON responses
Create full CRUD APIs
Use Laravel API Resources to format responses
Handle single resources and collections properly
Build and manage database relationships in APIs
Return related data using eager loading
Implement API authentication with Laravel Sanctum
Build Register, Login, and Logout APIs
Generate and manage API tokens
Protect routes using authentication middleware
Restrict users from updating or deleting only their own data
Upload images and files through API requests
Store, update, and delete files using Laravel storage
Return public file URLs correctly
Implement pagination in APIs
Add filtering, searching, and sorting features
Work with query parameters properly
Version your APIs (v1, v2 structure)
Apply rate limiting for API protection
Test APIs professionally using Postman
Create and publish API documentation
By the end of this course
You will have a strong understanding of backend API development and the confidence to:
Build APIs for mobile apps
Connect APIs to frontend frameworks
Work on real Laravel backend projects
Apply for junior or backend developer positions
Create scalable and maintainable API systems
If you want to move from basic Laravel knowledge to real backend development, this course will give you exactly that.
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 1 bài · 19 phút
Chương 2 Installation 3 bài · 11 phút
- Before you Start with the Course Học thử 0:31
- Installing Xampp Học thử 7:40
-
Installing VS Code 2:32
Chương 3 Laravel Basics for Rest API Development 8 bài · 2 giờ 54 phút
-
Basic Definitions and Ground Rules for APIs 36:51
-
Installing and Introducing Postman 22:19
-
Creating New Laravel Project and Directory Structure 17:45
-
How Routing Works Inside Laravel 13:07
- Controllers Explained Học thử 13:19
- Models and Database Basics Học thử 24:41
- Migration and Seeder Basics Học thử 16:50
- Laravel Rest API Request Lifecycle Overview Học thử 29:20
Chương 4 Laravel Rest API Basics (API Routes & Controllers) 5 bài · 1 giờ 15 phút
-
What are API Routes? 12:31
-
Types of Controllers (--API vs --Resource) 11:03
-
JSON Responses and Status Codes 21:38
-
Using API Resource Routes 17:49
-
Testing Routes with Postman 12:19
Chương 5 CRUD Operations Inside Laravel Rest API and More 5 bài · 1 giờ 34 phút
-
CRUD Operations pt.1 19:13
-
CRUD Operations pt.2 17:08
-
Validating API Request Data 27:09
-
API Response Formatting 16:33
-
Error Handling in APIs 14:21
Chương 6 API Resources & Transformers 3 bài · 1 giờ 2 phút
-
Using API Resources and Formatting Responses pt.1 19:19
-
Using API Resources and Formatting Responses pt.2 16:06
-
Using Nested Relationships with Resources 26:49
Chương 7 Building Authentication System in Laravel Rest APIs with Sanctum 7 bài · 2 giờ 32 phút
-
Intro to API Authentication and The Difference Between Tokens and Sessions 23:00
-
Setting up Sanctum 12:55
-
Registering New Users and Creating Tokens 28:31
-
Logging New Users and Creating Tokens 23:27
-
Protecting Routes & Using Tokens in Postman 19:08
-
Logging out and Destroying Tokens 18:26
-
Checking for Post Ownership and Validation 26:18
Chương 8 Relationships in Laravel APIs 2 bài · 1 giờ 11 phút
-
One to Many Relationship in APIs and Getting Current User Posts 33:03
-
Many to Many Relationship and Getting Posts by Tags 37:47
Chương 9 Uploading Files in Laravel APIs 3 bài · 1 giờ 10 phút
-
Uploading and Handling Files in Rest APIs 24:25
-
Updating and Deleting Files in Rest APIs 31:48
-
Storing Images in Storage Folder 13:59
Chương 10 Manipulating Data in Rest APIs (Advanced) 6 bài · 2 giờ 16 phút
-
Why Using Pagination is Important? 30:48
-
Using Filtering with Pagination 24:52
-
Searching for Posts with Pagination 28:49
-
Getting Data with QueryString Function (Advanced) 13:44
-
Sorting Posts with Pagination 26:11
-
Query Parameters in APIs 11:35
Chương 11 More Advanced API Topics(Versioning, Documentation and Throttling) 3 bài · 1 giờ 50 phút
-
API Versioning in Depth 43:26
-
Intro to Rate Limiting 28:56
-
API Documentation(Manuel and Postman) 37:58
Requirment
-
Basic knowledge of PHP syntax (variables, conditions, loops, functions)
-
Understanding of PHP OOP basics (classes, objects, methods)
-
Familiarity with Laravel fundamentals (routes, controllers, models)
-
Knowledge of MySQL databases and basic SQL queries
Outcomes
-
Set the proper environment for building Rest APIs smoothly
-
Build complete REST APIs using Laravel 12 from scratch
-
Understand how REST architecture works in real-world systems
-
Use correct HTTP methods (GET, POST, PUT, PATCH, DELETE)
-
Structure clean and consistent API requests and responses
-
Work professionally with JSON data format
-
Use Laravel API Resources to format responses
-
Document your Rest APIs in multiple ways and share it with other developers
-
Transform single resources vs collections correctly
-
Build and manage API relationships
-
Implement API authentication using Laravel Sanctum
-
Return related data using eager loading
-
Create secure Register, Login, and Logout APIs
-
Generate and manage API tokens properly
-
Protect API routes using auth:sanctum middleware
-
Restrict access so users can update and delete only their own data
-
Upload files and images through APIs
-
Store, update, and delete files using Laravel storage system
-
Implement pagination in API endpoints
-
Add filtering, searching, and sorting functionality
-
Version APIs properly (v1 / v2 structure) for scalability
-
Working with rate limiting and protect your API against malicious attacks
-
Install Postman and learn the most important parts about it in no time
0 Student
1 Course
0 review