
在本课程中,您将学习如何在 Laravel 中从头开始创建一个完整的电影 API,该 API 能够从数据库中创建、检索、更新和删除电影。这个过程从未如此简单。我将带你从下载 Laravel 的最开始阶段到在 Laravel 中构建 API 的最后步骤。
使用 Laravel 创建电影 API
API代表应用程序编程接口。我将使用 Laravel 框架来构建一个完整的电影 API。如果您对 PHP 和 MySql 有很好的理解和经验,那么本课程适合您。Laravel 是一个基于 PHP 的框架,因此您可以使用 Laravel 的强大功能来创建 API,而无需花费大量时间和精力来创建 PHP 代码。Laravel 让这个过程变得非常简单,因为 Laravel 基于 MVC 概念,它使您的代码干净、易于使用和调试。此外,Laravel 提供了许多仅使用 php 很难创建的功能。API 是高级 Web 应用程序的重要组成部分。学习如何开发一个将使您走上正确的轨道,在后端 Web 开发方面拥有出色的职业生涯。
最后,学习像 Laravel 这样的常用框架将使您站在任何潜在雇主的门口,并且您将被许多公司和初创企业雇用。
你将在 Laravel 的 Build Movies API 中学到的一些内容
如何下载 Laravel 并创建新项目。
如何创建电影模型。
如何创建电影迁移和工厂。
创建数据库。
创建和设计您的数据库表。
用数据快速填满您的表格。
Laravel 中的 RESTful API。
如何创建电影控制器。
如何通过 id 获取电影。
如何从数据库中获取所有电影。
更新与特定电影相关的数据
从数据库中删除电影。
处理错误。
响应代码。
API 版本控制。
还有更多!
笔记
使用的php版本 7
本课程的源代码附在课程末尾,您可以下载、使用它甚至进行更多开发。
Published 10/2022
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English | Duration: 51 lectures (2h 45m) | Size: 1.56 GB
Build API Using Laravel From Scratch
What you’ll learn
How to download Laravel & Create New Project
How to create Movie Model.
How to create Movies migrations & factory.
Create the database.
Create & design your database tables.
Filling up your tables with data quickly.
RESTful APIs in Laravel.
How to create Movies controller.
How to get a movie by id.
How to get all movies from your database.
Update data related to a specific movie.
Delete a movie from your database.
Handling errors.
Response codes.
API versioning.
Requirements
Internet connection.
Intermediate knowledge in PHP.
PC with MAC or Windows.
Description
In this course you’ll learn how to create a complete Movies API from scratch in Laravel that is capable of creating, retrieving, updating and deleting movies from the database. The process has never been easier. I’ll take you from the very beginning stages of downloading Laravel till the last steps of Building an API in Laravel.
Create Movies API using Laravel
API stands for application programming interface. I’ll use Laravel framework to build a complete movies API. If you’ve good understanding & experience in PHP & MySql then this course is for you. Laravel is a framework based off of PHP so instead of creating your PHP code, which would take a lot of time and effort, you will be able to use the power of Laravel to create an API. Laravel has made the process utterly simple because Laravel is based on the MVC concept which makes your code clean,easy to use & debug. Moreover, Laravel provides many features that would be hard to create by just using php alone. APIs are an essential part of advanced web application. Learning how to develop one will put you on the right track to have an outstanding career in Back-end Web Development. The Back-end part of web development is usually underestimated by the beauty of what front-end developers can do, however, you need to remember that without the Back-end side of the web, the whole process would be meaningless and probably fall apart!
Finally, learning a commonly used framework like Laravel will put your feet at the door of any potential employer & you’ll be desired to be hired by many companies and start-ups.
Some of What you will learn in Build Movies API in Laravel
How to download Laravel & Create New Project.
How to create Movie Model.
How to create Movies migrations & factory.
Create the database.
Create & design your database tables.
Filling up your tables with data quickly.
RESTful APIs in Laravel.
How to create Movies controller.
How to get a movie by id.
How to get all movies from your database.
Update data related to a specific movie
Delete a movie from your database.
Handling errors.
Response codes.
API versioning.
And Much Much More!
Notes
php version used 7
Source code of this course is attached to the end of the course, and you can download it, use it & even develop it more.
Who this course is for
Back-end web developers
PHP developers.
Laravel developers.
原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/38318.html