Laravel is a PHP framework for web artisans. It is free and open-source created by Taylor Otwell. It is based on MVP architectural pattern and based on Symfony. It was developed in June 2011, later it gained much popularity due to its well-organized structure and adaptability.
Laravel is considered as the best option for the development of big projects because its code is easy to maintain. It has raid development capabilities. You can use its command line for creating a new project, for generating databases, for creating basic controllers, for creating models and much more.
What is the REST API in Laravel?
We are living in an era where the Internet is the most revolutionary invention of the century. We can call this world “the world of the Internet” which has connected everyone throughout the world.
Before we start exploring about REST? I would like to develop your concept of HTTP and API. HTTP stands for Hypertext Transfer Protocol which is categorized as an application protocol for collaborative, distributed and hypermedia information systems. This protocol is the base of data communication on the world wide web (www).
API stands for Application Programming Interface. An API is a set of clearly communication methods through which a software can be communicated with. These methods and procedures allows to access the features and data of an application, servic and operating system. For example, Facebook provides social login API for user authentication. Visit https://www.jitterbit.com/solutions/edi-integration/ and learn more about this.
REST stands for Representational State Transfer. REST is a software architecture through which we apply certain constraints on our web service. Such web services are called RESTful web services. RESTful web services provide interoperability between computers on internet.
RESTful services allow to perform operations on data and access the system in various ways. RESTful API is an application programming interface that uses HTTP requests to perform PUT, GET, POST and DELETE operations.
In the following video, you will learn about what is API, what is Restful API. How you can develop it, what are its uses?
Introduction to Laravel:
This tutorial will introduce you with Laravel and some steps for getting started with Laravel Restful API.
Setting up the environment for Laravel:
The following article will help you to set up the environment necessary for proceeding with next Laravel tutorials of this series.
Create API Resource Controller in Laravel:
A controller is a Laravel class where you define the functionality of your particular module. This Laravel tutorial will teach you about how to create a class in Laravel, how to create a controller in Laravel using a command line for Restful API.
Setup Migration in Laravel:
Migration is used to generate a database table in Laravel. In this tutorial, you will learn how to create a migration class in Laravel for defining your table. You will learn about the command to create a migration.
Database seeding with faker library in Laravel:
In this tutorial, you will learn about database seeding in Laravel with faker library.
Creating a relationship in Laravel:
In this tutorial, you will learn about the relationship among database tables in Laravel.
Create API resource transformer in Laravel:
In this tutorial, you will learn about how you can create API resource transformer in Laravel.
In this tutorial, you will learn about transforming products in e-commerce.
Product Collection Transforming:
In this tutorial, you will learn about product collection transforming in e-commerce using Laravel.
Get Review API Resource:
In this tutorial, you will learn about get review API resource.
Configure Passport Package in Laravel:
In this tutorial, you will learn about what is passport package in Laravel and how to configure it.
Create New Product in Laravel:
In this tutorial, you will learn about how to add data in database in Laravel.
Update Product Details in Laravel:
In this tutorial, you will learn how to update information in database in Laravel.
Destroy a Product in Laravel:
In this tutorial, you will learn about how to destroy a product in Laravel.
Handle Exceptions in Laravel:
This tutorial will help you in understanding, how you can handle exceptions in Laravel.
Custom Exceptions in Laravel:
This tutorial will helps you in understanding how to create custom exceptions in Laravel.
Authorize Product Updates:
In this tutorial, you will learn how to authorize a product update in e-commerce.
Create Reviews for Product:
In this tutorial, you will learn how to create reviews for product.
This is last tutorial of this series, where you will do a complete review.