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.
Course content
- Preview02:52
- Preview01:04
- Preview02:22
- 01:02Tools you need
- 04:22Install Xampp Mac
- Preview02:03
- Preview03:31
- 01:37Install XAMPP Windows
- 01:07Install Composer Windows
- 02:27Create the project
- 04:23Project structure
- 02:05What is an API?
- 04:49Basic API employee 1
- 02:23Basic API employee 2
- 05:06Movies model, migration & factory
- 01:50Creating database
- 01:26Env setting credentials
- 02:04Using movie model
- 01:15Database fields
- 04:53Creating movies table
- 07:28filling up movies table with data
- 02:03Getting all movies from database
- 02:08What is RESTful api?
- 08:02Creating movies controller
- 02:08What the whole process fits together
- 00:55Get a single movie vs Get all movies
- 03:33Get movie by id
- 04:35Laravel resources
- 00:47Store new movie (introduction)
- 10:41Store new movie
- 00:52Form requests (introduction)
- 07:24Creating Movie request
- 00:43Save movie in Postman
- 00:33Update a movie (introduction)
- 08:22Update a movie
- 00:42Delete a movie (introduction)
- 03:26Delete a movie
- 01:05Error Handling (introduction)
- 05:00Handling NotFoundException error
- 02:45Handling non existent movie
- 01:07Response codes
- 02:55Response code at work
- 02:26API versioning introduction
- 07:33API versioning structure
- 10:01API version 1
- 03:00API version 2
- 00:35Filling up movies table with real data
- 04:01Movies resources zeros
- 02:38API documentation
- 02:31API documentation example
- 01:24Congrats!
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.
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.
Instructor
Hi, it's Mustafa Alawi, a Software engineer & entrepreneur. I've basically seven years of experience in web development & software development. I also have a great passion for Business & entrepreneurship and I run two businesses.
I like teaching people and providing them with the knowledge that I have because I believe that sharing information is essential in the process of developing our world. I also work on multiple projects consistently and like to share my ideas, get other people's ideas and build upon each others ideas.