Mô tả

In this course you'll learn how to create a REST API using the web framework PHP. If you wish to build an app or single-page application with a backend system, the go to way is building REST API's. Luckily we don't have to reinvent the wheel. Popular web frameworks, like Laravel, allow us to quickly build amazing REST API's.

During this course we take a project-based approach to learning about REST API's using Laravel. We will build an API for a task manager. This will demonstrate the most common problems you'll experience during the development of your own REST API.

During this course you will learn the following:

  • Implement CRUD actions for REST Resources in Laravel.

  • Make HTTP Requests using Postman.

  • User authentication with Laravel Sanctum using API tokens.

  • Sorting, Filtering and Pagination of lists of resources using the Laravel Query Builder package.

About Me

My name is Koen, it is nice to meet you. Starting out at the age of 15 with iOS development I never lost my interest in Software Development. Currently I mainly keep myself occupied with web development. I am invested in multiple backend technologies and frameworks, such as Ruby on Rails, Django and Laravel. On the frontend side of projects I follow the development of React, Alpine.js and Vue.js closely.


Bạn sẽ học được gì

Learn How to Build REST API's Using Laravel

Implement CRUD Functionality for Your API Resources

Authentication Using API Tokens

Sorting, Filtering & Paginating REST Resources

Yêu cầu

  • Basic Understanding of the PHP Programming Language
  • Basic Familiarity With Using the Terminal
  • Having PHP and Composer installed

Nội dung khoá học

11 sections

Introduction

1 lectures
Introduction
00:23

Project: Basics CRUD Operations

7 lectures
Install a New Laravel App
01:49
Create a First Route
04:20
Model Resources
04:08
Resource Routes
06:19
Creating a Resource
06:58
Update a Resource
04:42
Delete a Resource
02:35

Project: Pagination, Filtering & Sorting

3 lectures
Paginating Collections
03:30
Filter Resource Collections
03:35
Sorting Resource Collections
03:26

Project: Authentication Using Laravel Sanctum

5 lectures
Tasks That Belong to Users
05:25
Logging in With Our User
08:54
Protecting Task Routes
04:18
Create Tasks For The Logged In User
01:57
Register a New User
05:43

Project: Relationships

9 lectures
Create Projects
06:38
Creating and Updating Projects
07:16
Setting The Project For a Task
06:44
Fetching Tasks For a Project
04:33
Fetch the Project List
04:44
Deleting Projects
03:44
Foreign Key Constraints
04:42
Add Project Members
05:03
Show the Project Members
03:05

Project: Authorization

5 lectures
Create a Policy For Projects
07:27
Filter List Responses by Membership
06:27
Implement Remaining Policy Methods
03:40
Adjust the Validation Rules For Tasks
03:37
Add a Task Policy
09:29

Project: Nested Resources

3 lectures
Adding A Nested Resource
04:42
Attach Members to a Project
03:51
Remove Members to a Project
04:21

Project: Introduction to Testing

9 lectures
Preparing For Testing
05:29
Create a First Controller Test
07:08
Testing JSON Structure
04:14
Testing Filterable Fields
05:05
Testing Sortable Fields
02:54
Testing Single Model Resources
07:09
Testing Validation Messages
06:26
Testing Updating a Model Resource
09:05
Test Removing a Model Resource
04:32

Project: Polymorphic Relations

4 lectures
Add a Comments Model
08:42
Storing Comments
06:25
Testing Storing Comments
08:06
Show Comments for Model Resources
04:34

Project: Filtering With Query Scopes

3 lectures
Adding Dates to Tasks
03:57
Date Range Filters
05:24
Filter Due Dates For Today and the Past
03:44

Course Wrap Up

1 lectures
Stay Tuned for More Content
00:34

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.