Category Archives: Laravel

Laravel Tutorials

Laravel 8 Livewire File Upload Tutorial

In this Laravel 8 Livewire File Upload Tutorial I’ll show you how to upload file with livewire package in laravel 8 application. In this tutorial you will learn to upload file using livewire package in laravel. In this article I will share example to upload file using livewire file upload component. Laravel livewire package makes uploading and saving image files easy. With Laravel livewire package it is easy handle file upload.

Laravel 8 Livewire File Upload Tutorial

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

  • Step 1: Install Laravel 8 App
  • Step 2: Add Database Detail
  • Step 3: Create Model & Migration For File using Artisan
  • Step 4: Install Livewire Package
  • Step 5: Create File Upload Component using Artisan
  • Step 6: Add Route For Livewire File Upload
  • Step 7: Create View File
  • Step 8: Run Development Server

Step 1: Install Laravel 8 App

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

Step 2: 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.

Step 3: Create Model & Migration For File 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 Document.php and a migration create_documents_table.php. Go to database/migrations folder and open create_documents_table.php file. Then put the following code into create_documents_table.php file:

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

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

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

Step 4: Install Livewire Package

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

Step 5: Create File Upload Component using Artisan

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

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

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


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

Step 6: Add Route For Livewire File Upload

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

Step 7: Create View File

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

Step 8: 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 8 Summernote Image Upload Tutorial

In this Laravel 8 Summernote Image Upload Tutorial I will show you how to install and use Summernote with image upload in laravel. In this tutorial, you will learn to install Summernote with image upload in laravel. In this step by step guide you how to integrate Summernote  editor with image upload in laravel. Integration of Summernote editor in laravel form is simple process. I will also show you how to integrate or enable image upload in Summernote editor.

While creating forms we come to situation where we may text editor field so that we can insert and save html and other text into database. The summernote editor is feature rich wysiwyg html editor allows us to integrate text editor fields in html form.

Laravel 8 Summernote Image Upload Tutorial

In this laravel 8 summernote with image upload integration example I will guide you through step by step to install and use summernote editor with image upload in laravel 8 application. Please follow the instruction given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Create Migration and Model File
  • Step 4 – Add Routes
  • Step 5 – Create Controller
  • Step 6 – Create Blade File
  • Step 7 – Run Development Server
  • Step 8 – Test This App

Step 1 – Install Laravel 8 App

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

Step 2 – 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.

Step 3 – Create Migration and Model File

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

Next, go to database/migrations and open create_posts_table.php. Then put the following code into create_books_table.php file, as follow:


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

Now go to App directory and open Post.php model file. Then put the following code into Post.php model file, as follow:

app/Post.php

Step 4: Add 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

Step 5 – Create Controller

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

Then, go to app/http/controllers and open PostController.php file. And update the following code into your PostController.php file, as follow:

Step 6 – Create Blade File

In this step we will create blade file. Go to resources/views folder. And create a blade views  create.blade.php. Then open create.blade.php file and update the following code into create.blade.php file, as follow:

Step 7 – 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 –

Auto Load More Data on Page Scroll in Laravel 8 with AJAX

In this Auto Load More Data on Page Scroll in Laravel 8 with AJAX I’ll show you how to implement infinity scroll or dynamix ajax load more pagination on page scroll in laravel using ajax. In this tutorial you will learn to implement dynamic load more pagination in laravel using ajax in laravel. In this step by step guide I’ll share example of ajax load more or infinity scroll in laravel.

Auto Load More Data on Page Scroll in Laravel 8 with AJAX

In this step by step tutorial I will demonstrate you with example to create dynamix ajax load more pagination on page scroll in laravel. Please follow the instruction given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Create One Model and Migration
  • Step 4 – Add Route
  • Step 5 – Create Controller by Command
  • Step 6 – Create Blade View
  • Step 7 – Run Development Server
  • Step 8 – Test This App

Step 1 – Install Laravel 8 App

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

Step 2 – 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.

Step 3 – Create Model and Migration

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

Now, go to app/database/migrations and open posts migration file and add following fields:


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

Step 4 – 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

Step 5 – Create Controller by Command

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

Once the above command executed, it will create a controller file PostController.php in app/Http/Controllers/ directory. Open the PostController.php file and put the following code in it.

app/Http/Controllers/PostController.php

Step 6 – Create a blade view

In this step we will create blade view file. Lets create a blade file posts.blade.php. And put  the below HTML code into your posts.blade.php file:

The blade view file will list all your blog posts when you scroll the page down. Next, update the following script into your blade view file:

Step 7 – 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 8 Datatables Filter Column Relationship Tutorial

In this Laravel 8 Datatables Filter Column Relationship Tutorial I will show you how to display and filter column in yajra dataTables with relationship in laravel 8. In this tutorial you will learn to display and filter column in yajra dataTables with relationship. In this article I will share example to display and filter column in yajra dataTables with relationship in laravel.

Let suppose you have two database tables first is posts and the other one is users and you have relationship in each table. Now you want to display and filter posts title and who write these posts (author name). This would require you to use laravel yajra dataTables columns with a relationship.

Laravel 8 Datatables Filter Column Relationship Tutorial

In this step by step tutorial I’ll demonstrates you to how to use a filter on dataTables columns with relationships. Please follow the instruction given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Install Yajra DataTable
  • Step 4 – Create Migration and Modal
  • Step 5 – Add route
  • Step 6 – Create Controller by Artisan Command
  • Step 7 – Create Blade File
  • Step 8 – Run Development Server

Step 1 – Install Laravel 8 App

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

Step 2 – 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.

Step 3 – Install Yajra DataTable

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

After Installing Yajra Datatables package, we need to add service provider and alias in config/app.php file as following.

config/app.php

Step 4 – Create Migration and Modal

Now let’s create post table migration and create Post Modal using following artisan command:

his will create migration, open migration file and put the following code in it:

database/migrations/2020_05_20_070104_create_posts_table.php


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


Now update following code in your Post model file to create a posts table.

Step 5 – 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

Step 6 – Create Controller by Artisan Command

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

Once the above command executed, it will create a controller file PostController.php in app/Http/Controllers/ directory. Open the PostController.php file and put the following code in it.

app/Http/Controllers/PostController.php

 

Step 7 – Create Blade File

In this step we will create blade file. Go to resources/views directory and create new file users.blade.php. After that, put the following html and javascript code into your blade view file:

Step 8 – 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 8 Custom Validation Error Messages Tutorial

In this Laravel 8 Custom Validation Error Messages Tutorial I will show you how to create custom validation message error in laravel projects. In this tutorial you will learn to customize default validation message and use custom validation error messages in laravel forms. In this article I will share example on how to create and use validation error messages on laravel.

Custom Validation Error Messages In Laravel

In this step by step guide I will demonstrate you how to use custom validation error messages on laravel forms. Please follow the instruction given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Run Migration Command
  • Step 4 – Add Routes
  • Step 5 – Generate Controller By Command
  • Step 6 – Create the blade view
  • Step 7 – Run Development Server.

Step 1 – Install Laravel 8 App

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

Step 2 – 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.

Step 3 – Run Migration Command

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

Step 4 – Add 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

Step 5 – Generate Controller By Command.

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

Once the above command executed, it will create a controller file CustomErrorController.php in app/Http/Controllers/ directory. Open the CustomErrorController.php file and put the following code in it.

app/Http/Controllers/CustomErrorController.php

Step 6 – Create Blade View

In this step we will create blade view file. Go to resources/views folder and create a blade view file from.blade.php and update the following code into your file:

Step 7: 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 8 Google Autocomplete Address Tutorial

In this Laravel 8 Google Autocomplete Address Example Tutorial, I’ll show you how to integrate Address or location Autocomplete using Google Autocomplete in laravel 8. In this tutorial you will learn to implement google autocomplete in laravel 8. In this article I will guide you through the integration of google autocomplete in laravel.

Google Autocomplete

Google autocomplete widget is used to display suggestions for places, address and location as soon as the user starts typing in the given input box.

Laravel 8 Google Autocomplete Address Tutorial

In this laravel 8 google autocomplete tutorial I’ll demonstrate you step by step process to integrate google autocomplete in laravel 8 project. Please follow the instructions given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Get Api Key From Google
  • Step 3 – Add Route
  • Step 4 – Generate Controller by Command
  • Step 5 – Create Blade View
  • Step 6 – Run Development Server
  • Step 7 – Test This App.

Step 1 – Install Laravel 8 App

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

Step 2 – Get Api Key From Google

Now, we need to get Google API key to enable the communication between client and Google server. Now follow the instructions given below to get Google API Key:

  • Visit Google Cloud Platform.
  • Click on the project dropdown at the top to create the project.
  • Click APIs & Services > Credentials.
  • Now, click on Create Credentials > API key.
  • Copy google API and store in some text file.
  • Now we need to enable few services, so click on Credentials > “Enable APIs and Services”, additionally enable “Maps JavaScript API” and “Places API” services.

Step 3 – 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

Step 4 – Generate Controller by Command

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

After successfully create controller go to app/controllers/GoogleController.php and put the following code :

Step 5 – Create Blade view.

Now, we will create a blade view file. Go to app/resources/views and create one file name auto-complete.blade.php :

Add Autocomplete Script.

Step 6 – 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 8 CKeditor Image Upload Tutorial Example

In this Laravel 8 CKeditor Image Upload Tutorial I will show you how to install and use CKeditor with image upload in laravel. In this tutorial, you will learn to install CKeditor with image upload in laravel. In this step by step guide you how to integrate CKeditor editor with image upload in laravel. Integration of CKeditor editor in laravel form is simple process. I will also show you how to integrate or enable image upload in CKeditor editor.

While creating forms we come to situation where we may text editor field so that we can insert and save html and other text into database. The CKeditor editor is feature rich wysiwyg html editor allows us to integrate text editor fields in html form.

Laravel 8 CKeditor Image Upload Tutorial Example

In this laravel 8 CKeditor with image upload integration example I will guide you through step by step to install and use CKeditor editor with image upload in laravel 8 application. Please follow the instruction given below:

Step 1 – Install Laravel 8 App
Step 2 – Install CKEditor Package in Laravel
Step 3 – Register CKEditor package in Laravel
Step 4 – Publish the Ckeditor package by command
Step 5 – Add Route
Step 6 – Create Controller Using Artisan Command
Step 7 – Create Blade View
Step 8 – upload and Insert Image in laravel using CKEditor

Step 1 – Install Laravel 8 App

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

Step 2 – Install CKEditor In Laravel

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

Step 3 – Register CKEditor package in Laravel

Now, we will register the package in laravel. Go to config/app.php and put the following line to the providers array.

Step 4 – Publish the Ckeditor package by command

Now run following command to copy some of the files and folders from ‘vendor\unisharp\laravel-ckeditor’ to ‘public\vendor\unisharp\laravel-ckeditor’.

Step 5 – 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

Step 6 – Create Controller Using Artisan Command

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

After successfully run the above command and create a controller file. Next open your controller and put the below code into your file.

Step 7 – Create Blade View

Now we go resource/views and create a file name ckeditor.blade.php. After this we will create a blade file now put the following code in it:


Step 8 – Upload and Insert Image in laravel using CKEditor

Now we have to enable image upload option in ckeditor as following:

Now we will create a route for upload the image in laravel using CKEditor. Open route/web.php file and add the following route into it:

Next, open your terminal and run the below command:

Next, we will put the below method in our controller. This method will store the image or files in the server and return the image URL.

Laravel 8 Push Notification to Android and IOS Tutorial

In this Laravel 8 Push Notification to Android and IOS Example tutorial, I’ll show you how to send push notification to android and Ios in laravel. In this tutorial you will learn send push notification in laravel 8 project. In this example we will create a custom helper function to send push notification. In this article I will share example to  send push notification in laravel 8 application. In this step by step guide I’ll demonstrate you the process to send push notification in laravel 8.

Laravel 8 Push Notification to Android and IOS Tutorial

  • Step 1 –Create a Helper File
  • Step 2 –Add Fcm Key in .env
  • Step 3 –Send Notification.

Step 1: 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

Step 2: 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

Step 3: Send 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 8 Restrict User Access From IP Address

In this Laravel 8 Restrict IP Address From Accessing Website tutorial, I’ll show you how to restrict an IP address from accessing the website using middleware in laravel 8. In this tutorial you will learn to restrict user to access website using IP Address in laravel 8. You will also learn to create custom middleware. With this you will be able to restrict user with specified IP address from accessing the website, In this example we will be creating a middleware to restrict user with IP Address in laravel.

Laravel 8 Restrict User Access From IP Address

In this step by step tutorial I will demonstrate you how to restrict from accessing website with IP address. Please follow instruction given below:

    • Install Laravel 8 App
    • Connecting App to Database
    • Create a Middleware
    • Register the Middleware

Step 1: Install Laravel 8 App

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

Step 2: 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.

Step 3: Create a Middleware

Next step, Run the following artisan command to create a middleware named class BlockIpMiddleware:

Now, Go to app/Http/Middleware folder and open BlockIpMiddleware.php file. Then put the following code in BlockIpMiddleware.php file:

Step 4: Register the Middleware

Now, we need to register the middleware, so go to app/Http/ and open Kernel.php file. And register middleware as follow:

Laravel 8 Add Text Overlay Watermark on Image Example

In this Laravel 8 Add Text Overlay Watermark on Image Example tutorial I will show you how to add text overly watermark on Image in laravel 8. In this tutorial you will learn to add or create text overly watermark on Image in laravel 8 application. In this article I will share example to create watermark on image in laravel. We will be using PHP image intervention library to create text overly watermark on Image. The PHP image intervention library is helpful in creating images with copyright information, digital signature and any important information on it. In laravel we will using intervention package for adding text overly watermark on Image.

Add Text Overlay Watermark on Image Example

In this step by step tutorial I will demonstrate you with example how to add text overly watermark on Image in laravel. Please follow instruction given below:

    • Step 1 – Install Laravel App
    • Step 2 – Connecting App to Database
    • Step 3 – Install PHP Image Intervention Package
    • Step 4 – Add Routes
    • Step 5 – Create Controller
    • Step 6 – Create Blade View
    • Step 7 – Make Folder
    • Step 8 – Start Development Server

Step 1 -Install Laravel App

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

Step 2 – 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.

Step 3 – Install PHP Image Intervention Package

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

After Installing Image intervention package, we need to add service provider and alias in config/app.php file as following.

config/app.php

Now, run following command to migrate database schema.

Step 4 – Add 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

Step 5 – Create Controller

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

Then visit to app/controllers/ImageFileController.php and add the following code into it:

Step 6 – Create Blade View

In this step we will create blade view file. Go to /resources/views and create one file my-images.blade.php and add the following code into it:

Step 7 – Make Folder

In this step, Visit the public directory and create one folder or directory name upload.

Step 8 – 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 Create Custom Facade Class Tutorial

In this Laravel Create Custom Facade Class Tutorial I will show you how to Create Custom Facade in laravel 8. In this tutorial you will learn to create Custom Facade in laravel. In this article I will guide you through the process to create create Custom Facade Class in laravel 8.

What is Facade Class in Laravel?

The facade is a class that means to access an object from the container. Any facade you create basically extends the base Illuminate\Support\Facades\Facade class. The Laravel framework provide default facade like App, Cookie, Route, Redirect, Crypt etc.

Laravel Create Custom Facade Class Tutorial

In this step by step tutorial I will demonstrate you with example on how to create and use Custom Facade in laravel 8 application. Please follow the instruction given below:

  • Step 1 – Create a PHP class file
  • Step 2 – Bind that class to Service Provider
  • Step 3 – Register that Service Provider in Config\app.php
  • Step 4 – Create a class that extends Illuminate\Support\Facades\Facade
  • Step 5 – Register your facade in Config\app.php as aliases

Step 1: Install Laravel 8

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

Step 2: Create Class File

In the first step we will create a “DemoFacade” directory in our project’s app directory and create file DemoDateClass.php(app/DemoFacade/DemoDateClass.php). Then put the following code in DemoDateClass.php file.

app/DemoFacade/DemoDateClass.php

Step 3: Create Facade Class

Now we will create a facade class app/DemoFacade/DemoDateClassFacade.php, In this class we have to extend “Illuminate\Support\Facades\Facade” class:

app/DemoFacade/DemoDateClassFacade.php

Step 4: Create ServiceProvider Class

In this step we will create a service provider to bind class. Use the following command to create a service provider:

Now, we have DemoFacadeServiceProvider.php in providers(app/Providers) directory. Open app/Providers/DemoFacadeServiceProvider.php and put the following code:

app/Providers/DemoFacadeServiceProvider.php

Finally you need to register service provider in Config\app.php as following:

config/aap.php

Now we need to run composer dump-autoload command as bellow:

Step 5: Use Facade Class

Now we can use facade class as following:

Output:-

Laravel 8 jQuery Ajax File Upload Progress Bar Example

In this Laravel 8 jQuery Ajax file upload with progress bar tutorial I’ll show how to implement Ajax File Upload with progress bar in laravel 8. In this tutorial you will learn to implement progress bar along with ajax file upload. In this article I will share example to show you how to upload file using jquery ajax with progress bar in laravel 8. We will be using jquery ajax to upload file in laravel. We will also add progress bar with file uploading to display file upload progress.

jQuery Ajax File Upload Progress Bar Example

In this step by step tutorial I’ll demonstrate you how to upload file using jquery ajax with progress bar in laravel 8. Please follow the instruction given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Create Migration & Model
  • Step 4 – Add Routes
  • Step 5 – Create Controller by Artisan
  • Step 6 – Create Blade View
  • Step 7 – Run Development Server
  • Step 8 – Test This App

Step 1 – Install Laravel 8 App

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

Step 2 – 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.

Step 3 – Create Migration & Model

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

The above command will create a model Doc.php and a migration file for Docs table. Then go to database/migrations folder and open create_docs_table.php. Then put the following code into create_docs_table.php:

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

Step 4 – Create Route For 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

Step 5 – Generate Controller by Artisan

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

Once the above command executed, it will create a controller file UploadFileController.php in app/Http/Controllers/ directory. Open the UploadFileController.php file and put the following code in it.

app/Http/Controllers/UploadFileController.php

Step 6 – Create Blade View

In this step we will create blade view file. Now create a blade view file progress-bar-file-upload.blade.php. Go to /resources/views and create a file progress-bar-file-upload.blade.php. Then put the following code into progress-bar-file-upload.blade.php file:

Step 7 – 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 –