Showing entries 1 to 3
Displaying posts with tag: Laravel 5.6 (reset)
How To Create Comment Nesting In Laravel From Scratch

How To Create Comment Nesting In Laravel From Scratch is the today’s main topic. In any topic specific forum, there is always a structure, where you need to reply to someone’s comment and then somebody reply in their comment and so on. So comment nesting is very useful in any web application, which exposes public interest. In this tutorial, we will do it from scratch. We use Polymorphic relationship in this example.

Create Comment Nesting In Laravel From Scratch

As always, install Laravel using the following command. I am using Laravel Valet.

Step 1: Install and configure Laravel.

laravel new comments

# or

composer create-project laravel/laravel comments --prefer-dist

Go to the project.

cd comments …
[Read more]
Laravel Avatar Image Upload Tutorial With Example

Laravel Avatar Image Upload Tutorial With Example is the topic, we will discuss today. We will use laravel 5.6 with Spatie’s Media Library Package. By default, Laravel registration form includes only the name, email, and password, but usually, it’s helpful to allow the user to upload the photo or an avatar.

Laravel Avatar Image Upload Tutorial With Example

We are going to Configure Laravel Project.

Step 1: Download Laravel Project

Establish  Laravel Project by the typing following command.

composer create-project --prefer-dist laravel/laravel uploadavatarimages

Step 2: Setup SQL Database

Now we can setup database credentials.

//.env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306 …
[Read more]
Laravel Dropzone Image Upload Tutorial With Example

Laravel Dropzone Image Upload Tutorial, we will discuss today. Dropzone is the most famous, free and open source library that provides drag and drop file uploads with image previews. In this example, I will be using Laravel 5.6, but you can follow along using previous versions as well.

This tutorial explains the following:

  • Uploading multiple images with dropzone
  • Saving images with different file names to the database
  • Removing images direct from dropzone preview box

Laravel Dropzone Image Upload Tutorial With Example

We are going to Configure Laravel Project.

Step 1: Download Laravel Project

Establish  Laravel Project by the typing following command.

composer create-project --prefer-dist laravel/laravel dropzonefileupload

[Read more]
Showing entries 1 to 3