Learn Laravel in Deep

Fetch API – Creating REST API in Laravel(Part VI)

Fetch Api is an api end point for fetcing records from the database. We are using article as our entity so it will be article fetch api. We will create separate api for fetching single article and all articles. In previous article, we have created an update api to update record in database. We have ...

Update API – Creating REST API in Laravel(Part V)

Update Api is an api end point for updating records in the database. We are using article as our entity so it will be article update api. In previous article, we have created an store api to store records in database. We have already created database structure, eloquent model, routes, controller functions as well. Now, ...

Store API – Creating REST API in Laravel(Part IV)

Store Api is an api end point for storing data to database. We are using article as our entity so it will be article store api. In previous article, we have added request validation. We have already created database structure, eloquent model, routes, controller functions. Now, we will add all necessary logic to store function ...

Request Validation – Creating REST API in Laravel (Part III)

Request validation includes validation of the request at server sent from client end. In previous article, we discuss about necessary database structure, eloquent model, resource routes and resource controller for api in laravel. In this article, we will discuss request validation for the store and update of the article. We will create a request class ...

Creating REST API in Laravel Part II (database, routes, controller, model)

In the previous article, we discuss about api and structure of response based on processing of client request. In this article, we will create database structure, model, resource routes and controller. As we have previously mentioned, we will use article as our entity for all of these processes. Database Structure We will create a migration ...

Creating REST API in Laravel – Part I(Introduction)

API stands for application program interface and REST stands for Representational state transfer. In any web development, if we want to make separate front end and back end development, Then we can use restful api for transfer of data from front end to back end and vice versa. According to wikipedia, “Representational State Transfer (REST) ...

How to change user password in laravel ?

Laravel authentication scaffolding provides easy way for user registration, login/logout and password reset. Builtin structure uses traits like RegistersUsers, ResetsPasswords, AuthenticatesUsers and SendsPasswordResetEmails for authentication functionalities. These traits are easily customizable which makes easy way for customizing authentication process. However, user password change is still missing in the above structure. After running php artisan make:auth, ...

Using Ajax In Laravel

What is Ajax ? According to wikipedia, Ajax is a set of Web development techniques using many web technologies on the client side to create asynchronous Web applications. AJAX stands for Asynchronous JavaScript and XML. We can use ajax to send variety of requests to the server asynchronously. In laravel context, we can use ajax ...

HTTP Exception And Error Handling In Laravel

An exception is an unusual event while executing a software program or an application. An Http Exception is the most basic type of web-based exception, so it can be used for many general purposes that relate to something going wrong when processing an HTTP request in an web application. According to laravel official documentation here, ...

Using Transaction In Laravel

Transaction is a logical unit that is independently executed for data retrieval or updates. In the context of database, transaction is a unit that helps to manage data insert/update operation in elegant way. When we have to insert/update bulk data then it’s better to use transaction. If we have to add data in multiple table ...