
Install php 8.1+ and composer, then create a Laravel rest api server named task manager with authentication, migrations, routing, and queues, opened in VS Code.
Design a Laravel REST API by mapping users, lists, and tasks to routes, including authentication, CRUD for lists and tasks, and a status update endpoint.
Learn to run a Laravel development server with artisan serve, then create your first route in web routes using a closure or function to return a text response.
Explore how Laravel models interact with the database via ORM, with the user model extending Authenticatable and traits like Sanctum API tokens and factory.
Please note: If you're seeing the Laravel default page instead of the success JSON response, please make sure that you have added the following request headers in Postman:
Accept: application/json
Content-Type: application/json
Thanks to Johan for pointing this out.
Refactor authentication responses to standardize sign in, sign up, sign out, remove duplication, enable http codes via base controller error and success methods, and group auth routes under a prefix.
Implement the tasks API in Laravel with a model, migration, and API resource controller, using UUIDs and a status enum (todo, in progress, done), plus user and task list relations.
Implement searching for task lists and tasks by title, status, and details using like operator and where clauses, following pagination and sorting. Tests demonstrate filtering by ABC, D3, and T1.
Implement filtering by status using a where clause to return matching tasks. Validate statuses to error on invalid values and demonstrate filtering by in progress, todo, and done.
This course is designed to equip you with the skills and knowledge needed to build robust and scalable RESTful API servers using the powerful combination of PHP, Laravel, and MySQL. Whether you are a seasoned developer or a beginner looking to dive into backend development, this course will provide you with a comprehensive understanding of building RESTful APIs and how to leverage the PHP, Laravel, and MySQL ecosystem effectively.
Throughout this course, you will be guided through the step-by-step process of building a REST API server from scratch using industry best practices and the latest techniques. You will start by exploring the fundamentals of REST architecture and API design principles, gaining a solid foundation for building efficient and scalable APIs.
As you progress, you will learn how to set up a development environment with PHP, Laravel, and MySQL, ensuring you have all the necessary tools to build your REST API server. You will discover the power of Laravel, a popular PHP framework renowned for its elegance and simplicity, and how it streamlines the development process for building APIs.
The course will cover essential topics such as routing, request handling, validation, authentication, and authorization. You will learn how to handle common API tasks, including data retrieval, creation, updating, and deletion through the use of HTTP verbs and RESTful conventions. In addition, you will explore advanced concepts such as pagination, searching, filtering, and sorting to enhance the functionality and user experience of your API.
With MySQL as the database management system, you will delve into database integration and learn how to leverage Laravel's ORM (Object-Relational Mapping) capabilities, known as Eloquent, to perform database operations seamlessly. You will gain a deep understanding of how to structure database schemas, establish relationships between entities, and optimize queries for optimal performance.
Throughout the course, you will also be introduced to common challenges faced in API development and learn strategies to handle errors, implement rate limiting, and secure your API using industry-standard practices. You will explore techniques to test and debug your API server, ensuring its reliability and stability.
By the end of this course, you will have the confidence and skills to create a fully functional REST API server using PHP, Laravel, and MySQL. You will have a solid grasp of API design principles, best practices for development, and an understanding of how to overcome common challenges in the process. Whether you are building APIs for web or mobile applications, this course will empower you to deliver high-quality, efficient, and scalable solutions.
Note: This course does not cover frontend development or advanced database administration topics. It focuses solely on building REST API servers using PHP, Laravel, and MySQL.