Learn Laravel in Deep

Add new column to existing table in Laravel

Do you want to add new column in existing database table with laravel ? It’s simple. We can do it easily by creating a new migration structure. At first, we will figure out following three things before creating a new migration structure. Name Type Position At first we have to figure out name of the ...

Blank White Screen Problem in Laravel

Blank white screen problem is common in laravel. In this section, we are going to discuss some reasons behind the problem. This screen appears after uploading project in the shared hosting normally. There may be variety of reasons behind this problem. We will discuss some common reasons over here. Incorrect File/Directory Permission Incorrect permissions might ...

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 ...