Skip to main content
CF

How to Create Laravel API

1h 40m 20s
English
Paid

How to Create Laravel API is a 22-lesson 1 hour 40 minutes self-paced course by LaravelDaily. Unlock the potential of Laravel for API development!

Course facts

Lessons
22
Duration
1 hour 40 minutes
Level
All levels
Language
English
Updated
Instructor
LaravelDaily
Price
Premium

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.

Additional

https://github.com/LaravelDaily/Laravel-API-Course-Demo 

Who teaches How to Create Laravel API? LaravelDaily

LaravelDaily thumbnail

LaravelDaily is the long-running PHP / Laravel teaching brand of Povilas Korop, one of the most prolific Laravel content creators on the open web. The site has been publishing daily Laravel content for over a decade and now operates a paid course catalog plus the LaravelDaily YouTube channel and a popular weekly newsletter.

The CourseFlix listing carries five LaravelDaily courses covering Laravel project structure, REST API construction, advanced Eloquent ORM patterns, SOLID-principles application in Laravel, and the Laravel + Vue full-stack stack. Material is paid and aimed at Laravel developers ready to move past the framework basics into the patterns that show up in real production codebases.

What lessons are included in How to Create Laravel API?

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

What courses are similar to How to Create Laravel API?

Frequently asked questions

What prerequisites are necessary for this course?
This course requires a foundational understanding of Laravel development. It is not intended for beginners. If you are new to Laravel, consider taking the introductory course "Laravel for Beginners" to build the necessary skills before enrolling in this API-focused course.
What will I build during the course?
During the course, you will create RESTful APIs using Laravel. You will handle requests using GET and POST methods, manage data integrity with validation, and work on authentication using Sanctum or Passport. Additionally, you will generate API documentation with tools like Scribe or OpenAPI/Swagger, and learn about versioning and throttling your API.
Who is the target audience for this course?
This course is ideal for intermediate Laravel developers who want to specialize in API development. It is well-suited for those looking to enhance their skills in creating robust APIs and securing them with authentication mechanisms. It is not designed for beginners or those primarily interested in building Single Page Applications (SPAs).
How does this course compare in depth or scope to other Laravel courses?
This course focuses specifically on API development using Laravel, covering topics such as RESTful APIs, authentication, and API documentation tools. Unlike broader Laravel courses, it delves deeply into API-specific features like data pagination, validation, and handling CORS. It does not cover SPA development or advanced front-end integrations, which are planned for a separate course.
What specific tools or platforms will I learn to use?
You will learn to use several tools and platforms integral to API development in Laravel. These include Postman for managing and testing API requests, Laravel Sanctum and Passport for authentication, and documentation tools like Scribe and OpenAPI/Swagger to generate comprehensive API documentation.
What topics are explicitly not covered in this course?
The course does not cover Laravel basics or provide a comprehensive introduction to the framework. It also does not focus on building Single Page Applications (SPAs) or extensively cover Vue.js, although some examples of using Vue to consume Laravel APIs are provided. A separate course focused on SPAs is in planning.
How much time should I expect to commit to this course?
The course comprises 22 lessons, each focusing on different aspects of Laravel API development. While the total runtime is not specified, students should allocate adequate time for both the lessons and the hands-on exercises that accompany them. The time commitment may vary based on your familiarity with the topics covered and your practice speed.