In this tutorial, we will learn about Middleware and how to authenticate routes in Laravel 8 using Middleware.

What is Middleware

  • Middleware is like a tool or a way used for security reasons in any application made with Laravel. It checks all the HTTP requests (GET or POST) that comes from the users and starts the verification.
  • If the user is not verified then the middleware will redirect that user to the login page of that application else the middleware will allow the user to proceed in the application.

How to assign a Middleware to a specific route

Before assigning a Middleware for a particular route, we have to provide a class…


How To Create Three Column Layout Equally Using HTML And CSS
How To Create Three Column Layout Equally Using HTML And CSS

In this tutorial, we will learn to create three column layout equally using HTML and CSS. In order to do this, we have to understand the following CSS properties.

Also Read, How to auto calculate the sum of input values using Jquery or Javascript

CSS properties to create three column layout equally

  • Float
  • Width
  • Clear
  • Display
  • after Selector

Illustration of the example with the above CSS properties

Float:-

Float property defines how an element should float i.e. on the left side or on the right side. In this example, we will use the left property.

Width:-

It is used to define the width of each element. It may be columns, paragraphs, etc. …


How To Calculate Javascript Difference Between Two Dates In Days
How To Calculate Javascript Difference Between Two Dates In Days

In this tutorial, we will learn to calculate the javascript difference between two dates in days. It is often required for web development purposes such as doing calculations on a web page on the fly.

For example:- We have created two date input fields in an HTML file as shown on the image above and the no of days will be shown in the days’ input field.

Also read, Dropdown search box jQuery example with select2.min.js

Illustration of the example to find Javascript difference between two dates

  • Declare the date inputs with the id attribute to get the date value from the input field.
  • Use the javascript onchange event as a…

How To Auto Calculate The Sum Of Input Values Using Jquery Or Javascript
How To Auto Calculate The Sum Of Input Values Using Jquery Or Javascript

In this tutorial, we will learn to auto calculate the sum of input values using jQuery or JavaScript. Sometimes we need addition, subtraction, division, multiplication, and percentage, etc. in a webpage on the fly i.e. without reloading the page or submitting the page. With the help of JavaScript events, we can find the values.

In this example, three input fields are taken as shown in the image above. We are finding the amount of some values based on the given percentage.

Also read, add rows to table dynamically using JavaScript

Required Steps to get the sum of input values using Jquery

  • Declare all the input fields with the id attributes of…

In this tutorial, we will learn how to display MySQL data in a bootstrap modal on button click using ajax jQuery PHP. It seems very unprofessional while redirecting to another web page just to view some information. To simplify this problem, we will use a bootstrap modal which looks very user-friendly.

Display MySQL Data In A Modal On Button Click Using Ajax Jquery PHP
Display MySQL Data In A Modal On Button Click Using Ajax Jquery PHP

After clicking the button,


Dropdown Search Box Jquery Example With Select2.Min.Js
Dropdown Search Box Jquery Example With Select2.Min.Js

Hi friends, In this tutorial, we will discuss regarding dropdown search box jquery example with select2.min.js plugin. The default dropdown box in HTML or bootstrap does not have the option for searching data. Sometimes, we need to search for individual data from huge data sets in select boxes.

In such a case, select2.min.js plugin helps us to do so and gives us the search box option. With the help of this plugin, we can easily search for data from the select options as per our needs.

There are two ways available to use this plugin successfully

  1. Use the plugin from…

How To Export MySQL Table Data Into Excel Using jQuery
How To Export MySQL Table Data Into Excel Using jQuery

Hi friends, in this tutorial we will learn how to export MySQL table data into excel using the jQuery plugin. On the other hand, it can also be done with the help of a PHP script. We will discuss it in the upcoming tutorial. But for now, in order to export table data successfully, we have to follow the below steps one by one.

  1. Download the jQuery Plugin to export the table data.
    You can also download the plugin from here.
  2. Just make a folder and extract the plugin archive and place the archive folder where you have created your…

CRUD Operation In Laravel 5.8 Step By Step For Beginners
CRUD Operation In Laravel 5.8 Step By Step For Beginners

Hi friends, before getting started with the tutorial CRUD operation in laravel 5.8, I want to say that Laravel latest version has changed a little bit process of coding. Assuming that you already have installed Laravel 5.8 in your system. If not yet installed then also read, how to create laravel project from scratch for beginners.

The requirements for the CRUD operation in Laravel 5.8 are as follows-

  • We need a table in the database.
  • Route Configuration in web.php file.
  • A controller containing all the required functions.
  • A model containing all the fields of the table in the database.
  • We need a folder containing the following files in the resources/views folder of…

How To Create Laravel Project From Scratch
How To Create Laravel Project From Scratch

In order to create laravel project from scratch including authentication in a simple way, we have to follow the below guidelines.

  • We have to download and install the composer file that is important for the laravel application to start. You can download the composer file directly from this website. download the composer here.
  • After the successful installation of the composer, open the command prompt terminal and type composer. Now, you will see the composer screen.
  • Now, we have to create a fresh laravel project inside the root directory folder of our local server. …

PBPhp Solutions

Hi, This is Biplab and I am web developer well versed in PHP and other open source technologies. I am here to share my experience with the community.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store