Category Archives: Blog

Blog

Laravel 9 Livewire Pagination with Search

In this Laravel 9 Livewire Pagination with search Example tutorial I’ll show you how to implement pagination with search in laravel 9 application using laravel livewire pagination component. In this tutorial you will learn to create pagination with search using laravel livewire pagination. We will be using default laravel pagination method to create pagination using livewire in laravel 9. In this step by step tutorial I will demonstrate to implement laravel livewire pagination with search.

In this step by step tutorial I will demonstrate you how to implement Livewire Pagination with Search in laravel application. Please follow the step given below:

  • Install Laravel
  • Add Database Detail
  • Create Model & Migration using Artisan
  • Install Livewire Package
  • Create Component using Artisan
  • Add Route
  • Create View File
  • Run Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel using the below command

Add Database Detail

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Create Model & Migration using Artisan

Now, in this step we will create model and migration file. Please run the following command:

The above command will create a model name Employee.php,create a migration name create_employees_table.php and one faker file that name EmployeeFactory.php . Now, go to database/migrations folder and open create_ employees_table.php file. Then put the following code into create_ employees_table.php file

Next, open your command prompt and run the following command to create the table into your database:

Next, go to app/Employee.php and update the following code into your Employee.php model as follow:

Next, go to database/factories and open EmployeeFactory.php. Then update the following code into it as follow:

After that, run the following command to generate fake data using faker as follow:


In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Create Component using Artisan

In this step we will create a component using following command:

The above command will create the following component files on the following path:

Now, go to app/Http/Livewire folder and open SearchPagination.php file. Then put the following code into your SearchPagination.php file:

After that, go to resources/views/livewire folder and open search-pagination.blade.php file. Then put the following code into your search-pagination.blade.php file:

Add Route

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create View File

In this step, go to resources/views/livewire folder and create a blade file that name home.blade.php file. Then put the following code into your home.blade.php file:

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Livewire Pagination Example

In this Laravel 9 Livewire Pagination Example tutorial I’ll show you how to implement pagination in laravel 9 application using laravel livewire pagination component. In this tutorial you will learn to create pagination using laravel livewire pagination. We will be using default laravel pagination method to create pagination using livewire in laravel 9. In this step by step tutorial I will demonstrate to implement laravel livewire pagination app.

Laravel 9 Livewire Pagination

In this step by step tutorial I will demonstrate you how to implement livewire pagination in laravel. Please follow the instruction given below:

  • Install Laravel App
  • Add Database Detail
  • Create Model & Migration using Artisan
  • Install Livewire Package
  • Create Component using Artisan
  • Add Route
  • Create View File
  • Run Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel using the below command

Add Database Detail

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Run Migration

Now, in this step we will create model and migration file. Please run the following command:

The above command will create a model name Employee.php,create a migration name create_employees_table.php and one faker file that name EmployeeFactory.php . Now, go to database/migrations folder and open create_ employees_table.php file. Then put the following code into create_ employees_table.php file

Now, go to app\Providers folder and open AppServiceProvider.php file. And put the following code into AppServiceProvider.php file:

Next, open your command prompt and run the following command to create the table into your database:

Next, go to app/Employee.php and update the following code into your Employee.php model as follow:

Next, go to database/factories and open EmployeeFactory.php. Then update the following code into it as follow:

After that, run the following command to generate fake data using faker as follow:

Install Livewire Package

In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Create Component using Artisan

In this step we will create a component using following command:

Now, go to app/Http/Livewire folder and open SearchPagination.php file. Then put the following code into your SearchPagination.php file:

After that, go to resources/views/livewire folder and open search-pagination.blade.php file. Then put the following code into your search-pagination.blade.php file:

Add Route

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create View File

In this step, go to resources/views/livewire folder and create a blade file that name home.blade.php file. Then put the following code into your home.blade.php file:

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Check User Login, Online Status & Last Seen

In this Laravel 9 Check User Login, Online Status & Last Seen tutorial I’ll show you how to check User Online, last seen and Not online in Laravel 9 using custom middleware. In this tutorial you will learn to check user is online or not in laravel. In this step by step guide we will be creating a custom middleware to check User Online, Not online and last seen.

How to Check User Login Online Status & Last Seen in Laravel 9?

In this step by step tutorial I will demonstrate you with example How to Check User Login Online Status and Last Seen in Laravel 9. Please follow the instruction given below:

  • Install Laravel 9
  • Connecting Database
  • Generate Auth Scaffolding
  • Add Column in User Table
  • Create a Middleware
  • Register Middleware in Kernel
  • Create Controller by Artisan
  • Check Online Status in Blade File
  • Run Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel 9 using the below command

Connecting Database

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Generate Auth Scaffolding

In this step we will be generating laravel’s auth scaffolding using following command:

Add Column in User Table

You need to add one column in the users table called last_seen. So, navigate database>migrations folder and open create_users_table file. Then update the last_seen column in this file as follow:


Now, run the migration to create database table using following artisan command:

Create a Middleware

In this step we will creating custom middleware using following command:

Now, go to app>Http>Middleware and open ActivityByUser.php middleware. Then put the following code into your middleware file:

Register Middleware in Kernel

In this step, navigate app>Http and open Kernel.php. And register ActivityByUser.php middleware in the kernal.php file. You can see as follow:

Create Controller by Artisan

Now, lets create a controller named UserController using command given below –

Now, go to app>Http>Controllers and open UserController.php file. Then update the following method into your UserController.php file:

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Check Online Status in Blade File

Go to resources>views and open home.blade.php. Then update the following code into home.blade.php.

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

codeigniter 4 image upload example tutorial

In this codeigniter 4 image upload example tutorial I will show you how to upload image fine in codeigniter 4. In this tutorial you will learn to upload image file in codeigniter 4. I will also show you how to validate upload image into folder and then save it into database. In this tutorial before saving image into database we will validate image and then save it into directory using. Before uploading the image we will perform server side validation. In this article we will create a simple example to upload image in codeigniter 4.

codeigniter 4 image upload example tutorial

In this step by step tutorial I will demonstrate you with example how to upload image file in codeigniter 4. Please follow the instruction given below:

  • Install Codeigniter
  • Basic Configurations
  • Create a Database in table
  • Connect to Database
  • Create Controller and Model
  • Create Views Files
  • Run The Application

Install Codeigniter 4

Download or install the latest version of CodeIgniter 4

Basic Configurations

Now, we need to setup some codeigniter basic configurations in your project as following.

Create a Database in table

Now you need to create some database tables in your codeigniter application database. Please use the following sql query to create database tables.

Connect to Database

Now, lets create a MySQL database and connect it with codeigniter application. After creating database we need to set database credential in application’s app/Config/Database.php file.

app/Config/Database.php

Create Controller and Model

In this step we will create a “Student.php” controller file and the “StudentModel.php” model file. Please paste the below code in corresponding file.

app/Models/StudentModel.php

Create Views Files

Now, in this step we will create a view file and put following code in it.
app/views/add.php

Run The Application

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Livewire Charts Example

In this Laravel 9 Livewire Charts Example Tutorial I’ll will show how to create charts, pie charts, column charts and area charts using livewire package in laravel 9. In this tutorial you will learn to implement charts in laravel 9 application using livewire package. With livewire package we can visualize data in your laravel web application. In this tutorial I’ll share example to demonstrate use of livewire charts in laravel 9.

Laravel 9 Livewire Charts Example

In this step by step tutorial I will demonstrate you how to implement livewire charts using livewire package in laravel 9. Please follow the instruction given below:

  • Install Laravel 9
  • Connecting Database
  • Create Model & Migration using Artisan
  • Install Livewire Package
  • Install Livewire Charts Package
  • Build Livewire Component using Artisan
  • Create Route
  • Create View File
  • Run Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel 9 using the below command

Configuring Database

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Create Post Model & Migration

Now, in this step we will create model and migration file. Please run the following command:

Now, open create_expenses_table.php file inside database/migrations/ directory. Then put the function up() with following code:

Then, Execute the following command on the terminal to create tables into the database:

Install Livewire Package

In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Install Livewire Charts Package

In this step, we will install livewire Charts Package via the composer dependency manager. Use the following command to install livewire Charts Package.

Build Livewire Charts Component using Artisan

In this step we will create a livewire charts component using following command:

The above command will create the following component files on the following path:

Now, go to app/Http/Livewire folder and open LivewireCharts.php file. Then add the following code into your LivewireCharts.php file:

Now, go to resources/views/livewire/ folder and open livewire-charts.blade.php file. Then add the following code into your livewire-charts.blade.php file:

Create Route

After this, we need to define routes for crud operations in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create View File

In this step we will create a blade view file. Go to resources/views/ folder and create one blade view files that name home.blade.php file. Then add the following code into home.blade.php file:

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Livewire Crud Example

In this Laravel 9 Livewire Crud Example tutorial I will show you how to create simple CRUD Application using livewire in laravel 9. In this tutorial, you will learn to create a simple CRUD (Create, Read, Update and Delete) application with livewire in Laravel 9. In this Laravel 9 CRUD example tutorial I’ll show you how to create a simple crud application using livewire in laravel 9. In this example we will learn how to create a simple crud operation application in laravel 9. In this article, you will learn how to create fully functional CRUD (Create, Read, Update and Delete) application using livewire in laravel 9.

Laravel 9 Livewire Crud Example

In this step by step tutorial I will demonstrate you with example to create livewire crud in laravel 9 application. Please follow the instruction given below:

  • Install Laravel 9
  • Configuring Database
  • Create Post Model & Migration
  • Create Routes
  • Installing Livewire Package
  • Build Livewire Components
  • Create Blade Views
  • Start Development Server
  • Run This App On Browser

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel 9 using the below command

Configuring Database

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Create Post Model & Migration

Now, in this step we will create model and migration file. Please run the following command:

Now, open create_posts_table.php file inside database/migrations/ directory. Then put the function up() with following code:

Then add the fillable property in Post.php, which is placed on app/models direcotry:

Then, Execute the following command on the terminal to create tables into the database:

Create Routes

After this, we need to define routes for crud operations in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Install Livewire Package

In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Install Npm Packages

Then type the following command on cmd to run npm:

Run following command on the terminal to create tables into the database:

Build Livewire Components

In this step we will create a component using following command:

The above command will create the following component files on the following path:

Now, go to app/Http/Livewire folder and open Posts.php file. Then add the following code into your Posts.php file:

Now, open posts.blade.php, which is located inside resources/views/livewire/ directory and add the following code into it:

Create Blade Views

In this step, go to resources/views/livewire folder and create some view files as following:

Create.blade.php

Update.blade.php

Home.blade.php

Start Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Livewire Multiple Image Upload

In this Laravel 9 Livewire Multiple Image Upload Example tutorial I’ll show you how to upload multiple image file using livewire package in laravel 9. In this tutorial you will learn to upload multiple image file livewire package in laravel 9. Laravel livewire package makes uploading and saving multiple image files easy. With Laravel livewire package it is easy handle multiple file upload. It automatically detects multiple attributes on the <input> tag.

Laravel 9 Livewire Multiple Image Upload

  • Install Laravel
  • Add Database Detail
  • Generate Migration and Model by Command
  • Install Livewire
  • Create Component
  • Create Route
  • Create View File
  • Run Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel using the below command

Add Database Detail

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Generate Model and Migration By Command

Now, in this step we will create model and migration file. Please run the following command:

The above command will create a model name Image.php and also create a migration name create_images_table.php. Now, go to database/migrations folder and open create_images_table.php file. Then put the following code into create_images_table.php file:

Then go to app\Providers folder and open AppServiceProvider.php file. And put the following code into AppServiceProvider.php file:

Now run the following command to create the table into your added database:

Now, Open App/Image.php file and add the fillable properties:

Install Livewire

In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Create Component

In this step we will create a component using following command:

The above command will create the following components on the following path:

Now, go to app/Http/Livewire folder and open UploadMultipleImage.php file. Then add the following code into your UploadMultipleImage.php file:

Now, go to resources/views/livewire folder and open upload-multiple-image.blade.php file. Then put the following code into your upload-multiple-image.blade.php file:

Create Route

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create View File

In this step, go to resources/views/livewire folder and create a view files that name home.blade.php file. Then put the following code into your home.blade.php file:

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Livewire Image Upload

In this Laravel 9 Livewire Image Upload tutorial I’ll show you how to upload image file using livewire package in laravel 9. In this tutorial you will learn to upload image file using livewire package in laravel 9 application. Laravel livewire package makes uploading and saving image files easy. With Laravel livewire package it is easy handle image file upload.

Laravel 9 Livewire Image Upload

In this step by step tutorial I will demonstrate you how to upload image file using livewire package in laravel 9. Please follow the instruction given below:

  • Install Laravel 9
  • Add Database Detail
  • Create Model & Migration using Artisan
  • Install Livewire Package
  • Create Component using Artisan
  • Add Route
  • Create View File
  • Run Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel 9 using the below command

Add Database Detail

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Create Model & Migration using Artisan

Now, in this step we will create model and migration file. Please run the following command:

The above command will create a model name Image.php and also create a migration that name create_images_table.php. Now go to database/migrations folder and open create_images_table.php file. Then put the following code into create_images_table.php file

Then go to app\Providers folder and open AppServiceProvider.php file. And put the following code into AppServiceProvider.php file:

Now run the following command to create the table into your database:

Now, Open App/Image.php file and put the fillable properties:

Install Livewire Package

In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Create Component using Artisan

In this step we will create a component using following command:

The above command will create the following components on the following path:

Now, go to app/Http/Livewire folder and open UploadImage.php file. Then add the following code into your UploadImage.php file:

Now, go to resources/views/livewire folder and open upload-image.blade.php file. Then put the following code into your upload-image.blade.php file:

Add Route

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create View File

In this step, go to resources/views/livewire folder and create a blade files name home.blade.php file. Then put the following code into your home.blade.php file:

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Livewire Submit Form

In this Laravel 9 Livewire Submit Form tutorial, I’ll show you how to install and use laravel livewire form package in your laravel application. In this tutorial you will learn to install, setup and use laravel livewire form. In this article I will guide you through how to submit and store form data using the laravel livewire form package in laravel.

Laravel 9 Livewire Submit Form

In this step by step tutorial I will demonstrate you how to submit laravel form using livewire. Please follow the instruction given below:

  • Install Laravel 9
  • Add Database Detail
  • Generate Migration and Model by Command
  • Install Livewire
  • Create Component
  • Create Route
  • Create View File
  • Run Development Server

Install Laravel

First of all we need to create a fresh laravel project, download and install Laravel using the below command

Add Database Detail

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Generate Model and Migration By Command

Now, in this step we will create model and migration file. Please run the following command:

The above command will create a model name Contact and also create a migration file for Contact table. After successfully run the command go to database/migrations file and put the below here :

now go to app\Providers\AppServiceProvider.php and put the below code here :

Now run the following command to create the table into your database:

Next, Open App/Contact.php file and add the fillable properties:

Install Livewire

In this step, we will install livewire Package via the composer dependency manager. Use the following command to install livewire Package.

Create Component

In this step we will create a component using following artisan command:

You can see a created file on the following path:

Now, put the following code into your files, so follow the given path and update the code:

app/Http/Livewire/ContactForm.php

resources/views/livewire/contact-form.blade.php

Create Route

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create View File

In this step, we will create a blade files that name form.blade.php file inside resources/views/ folder and put the following code into your file:

resources/views/form.blade.php

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Simple CRUD Application Example

In this Laravel 9 Simple CRUD Application Example Tutorial, you will learn to create a simple CRUD (Create, Read, Update and Delete) application in Laravel 9. In this Laravel 9 CRUD operation example tutorial I’ll show you how to create a simple crud application in laravel 9. In this example we will learn how to create a simple crud operation application in laravel 9.

Laravel CRUD Appliction

Laravel crud application is simple laravel application. We create a simple application perform basic CRUD (Create, Read, Update and Delete) operation on any resource in Laravel.

Laravel 9 Simple CRUD Application Example

In this step by step guide, we will be creating a simple company crud operation application with validation in laravel 9. In this example you will learn how to insert, read, update and delete data from database in laravel 9.

  • Install Laravel 9
  • Setup Database with App
  • Create Company Model & Migration For CRUD App
  • Create Routes
  • Create Company CRUD Controller By Artisan Command
  • Create Blade Views File
  • Run Laravel CRUD App on Development Server

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel 9 using the below command

Configure Database In .env file

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

.env

Create Model & Migration

Now, in this step we will create model and migration file for form. Please run the following command:

Once above command is executed there will be a migration file created inside database/migrations/ directory, just open create_companies_table.php migration file and update the function up() method as following:

Now, run following command to migrate database schema.

Create Routes

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create Company CRUD Controller By Artisan Command

Next, we have to create a controller company crud application. Lets Create a controller named CompanyCRUDController using command given below –

Open the CompanyCRUDController.php file and put the following code in it.

app/Http/Controllers/CompanyCRUDController.php

Create Blade File

Now, create blade file for CRUD Operations accordingly. Let’s directory and some blade view, as following:

  • Make Directory Name Companies
  • index.blade.php
  • create.blade.php
  • edit.blade.php

Create directory name companies inside resources/views directory.

index.blade.php

create.blade.php

edit.blade.php

Start Development Server

Now we are ready to run our example so lets start the development server using following artisan command –

Now, open the following URL in browser to see the output –

Laravel 9 Send FCM Push Notification using Firebase

In this Laravel 9 Send FCM Push Notification using Firebase Tutorial, I’ll show you how to send fcm push notification to android and Ios using firebase in laravel 9. In this tutorial you will learn send push notification using firebase in laravel 9. In this example we will create a custom helper function to send firebase push notification in laravel 9. In this article I will share example to send push notification in laravel 9 application.

Laravel 9 Send FCM Push Notification using Firebase Tutorial

In this step by step guide I’ll demonstrate you the process to send firebase push notification in laravel 9. Please follow the instruction given below:

  • Create a Helper File
  • Add Fcm Key in .env
  • Send Push Notification.

Create a Helper File

In this step we will create a helper file. Go to App directory and inside this directory create a new file new helpers.php. Now put the following code into your helpers.php file as follow:

app/helpers.php

Add Fcm Key in .env

In this step we will add fcm key in laravel project’s .env file. Go to your project root directory and open .env file. Then update fcm key as follow:

Now, you can use your google fcm key as follow

Send fcm Push Notification

In this step, open your controller file and you can call send_notification_FCM($notification_id, $title, $message, $id,$type) from helpers.php with following parameters.

send_notification_FCM() with following parameter $notification_id, $title, $message, $id,$type. Now when you want to send push notification you need to call the send_notification_FCM() with parameters as specified.

Laravel 9 Dynamically Add or Remove Multiple Input Fields using jQuery

In this Laravel 9 Dynamically Add or Remove Multiple Input Fields using jQuery tutorial I’ll show you how to dynamically add or remove multiple input field in form using jQuery in laravel 9. In this tutorial you will learn to dynamically add or remove multiple input field in form using jquery in laravel 9. In this tutorial I’ll share example to demonstrate Dynamically Add or Remove multiple Input Fields jQuery.

Laravel 9 Dynamically Add or Remove Multiple Input Fields using jQuery

In this step by step tutorial we will learn to dynamically add or remove multiple input field in form using jQuery in laravel 9. Please follow the instruction given below:

  • Install Laravel 9
  • Connecting App to Database
  • Build Migration & Model
  • Add Routes
  • Create Controller by Artisan
  • Create Blade View
  • Run Development Server
  • Test App On Browser

Install Laravel 9

First of all we need to create a fresh laravel project, download and install Laravel 9 using the below command

Connecting App to Database

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Build Migration & Model

Now, in this step we will create model and migration file. Please run the following command:

Now, go to database/migrations folder and open create_todos_table.php. Then put the following code into create_todos_table.php:


Then open Todo.php file and the fillable property, which is placed on app/models directory:


Now, in this step we will create model and migration file. Please run the following command:

Create Route

After this, we need to define routes in “routes/web.php” file. Lets open “routes/web.php” file and add the following routes in it.

routes/web.php

Create Controller by Artisan

Now, lets create a controller named DynamicAddRemoveFieldController using command given below –

This command will create a controller named DynamicAddRemoveFieldController.php file.

Next, Navigate to app/http/controllers/ folder and open DynamicAddRemoveFieldController.php. Then add the following file uploading methods into your DynamicAddRemoveFieldController.php file:

Create Blade View

In this step, we will create a blade view file named add-remove-multiple-input-fields.blade.php. Now, go to resources/views and create one file name add-remove-multiple-input-fields.blade.php Then put the following code into your add-remove-multiple-input-fields.blade.php file:

Run Development Server

Now we are ready to run our example so lets start the development server using following artisan command –


Now, open the following URL in browser to see the output –