Skip to main content

How to Create Laravel API

1h 40m 20s
English
Paid

Unlock the potential of Laravel for API development! As the demand for API developers continues to rise, particularly those skilled in Laravel, this course is designed to equip you with the knowledge to create robust APIs using the Laravel framework.

Course Highlights

In this course, you'll gain hands-on experience and learn how to:

  • Create Laravel RESTful APIs: Master the art of handling requests using GET/POST, leverage API Resources, ensure data integrity with Validation, and more.
  • Authorize API Users: Secure your applications with user authentication using Sanctum or Passport.
  • Utilize Postman: Effectively manage and test your API requests with Postman, a powerful tool for API development.
  • Generate API Documentation: Learn how to create comprehensive API documentation using tools like Scribe or OpenAPI/Swagger.
  • Discover Tips and Tricks: Enhance your API projects with various insights and advanced techniques.

What This Course Is Not

This course is not intended for Laravel beginners. It requires a foundational understanding of Laravel development. For those new to Laravel, we recommend our free Laravel for Beginner s course to get you started.

Additionally, this course is not focused on building Single Page Applications (SPAs) or extensively covering Vue.js. While some examples of using Vue to consume Laravel APIs will be demonstrated, a separate course dedicated to SPAs is in the planning stages.

About the Author: laraveldaily.com

laraveldaily.com thumbnail
My name is Povilas Korop, and I’m main author of Laravel Daily, since 2015. As a Laravel web-developer, I deal with a lot of small things here and there. Daily. And I decided to share them with the world, also daily. So Laravel Daily project has a goal of helping developers to learn some new Laravel trick (or remember an old one) every day.

Watch Online 22 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 22 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Intro: Why API?
All Course Lessons (22)
#Lesson TitleDurationAccess
1
Intro: Why API? Demo
05:09
2
Basic Demo: How Laravel API Works
03:18
3
List of Data: Routing, Controllers and Postman Demo
04:08
4
Getting Single Record and API Resources
05:13
5
Why 404 Page? Setting Correct Headers
01:39
6
Getting List Inside of List: Returning Multi-Level Data
03:48
7
From Postman to Web Client with Vue.js
03:07
8
Data Pagination in API
03:30
9
Create a New Record: POST from HTML Form
04:17
10
Validation, Errors and Status Codes
03:48
11
Finishing CRUD: Update, Delete and Resource Controller
05:01
12
Uploading files via API
03:02
13
What is CORS and How to Handle it?
02:27
14
Authentication Overview: Sanctum, Passport or JWT?
04:29
15
Authentication with Laravel Sanctum and SPA
06:04
16
Authentication with Laravel Sanctum and API Tokens
05:19
17
Authentication with Laravel Sanctum and Mobile Apps
02:19
18
Authentication with Laravel Passport and Password Grant Type
08:05
19
Generating API Documentation with Scribe
12:40
20
Generating API Documentation with OpenAPI/Swagger
04:51
21
Versioning your API: from V1 to V2 and Beyond
05:01
22
Throttling: Maximum Requests per Minute
03:05
Unlock unlimited learning

Get instant access to all 21 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription