Installation

Prerequisites

This guide assumes that you already know how to install and configure Laravel and have the latest version of Composer installed.

Install Laravel Avatar

Extract the files from the archive you have downloaded from CodeCanyon into a avatar folder in your project root.

Edit your composer.json file and add a local path repository:

"repositories": [
    {
        "type": "path",
        "url": "./avatar"
    }
],
"minimum-stability": "dev"

In your terminal run:

composer require botble/avatar *@dev

or

composer require botble/avatar dev-master

Next, you must install the service provider, you can ignore this step if you're using Laravel >= 5.5:

// config/app.php
'providers' => [
    ...
    Botble\Avatar\Providers\AvatarServiceProvider::class,
];

For Laravel 5.1 and 5.2 you have to publish the migrations with:

php artisan vendor:publish --provider="Botble\Avatar\Providers\AvatarServiceProvider" --tag=migrations

Run the migrate command to create the necessary tables:

php artisan migrate

Publish the assets files with:

php artisan vendor:publish --provider="Botble\Avatar\Providers\AvatarServiceProvider" --tag=assets

You can publish the config file with:

php artisan vendor:publish --provider="Botble\Avatar\Providers\AvatarServiceProvider" --tag=config

Head over to the Usage section to get started.

Clone Avatar Demo

You can clone the demo version from the GitHub repository:

git clone https://github.com/botble/demo-avatar.git

Then you can continue with the normal installation.

Requirements and Browser Support

Laravel Comments requires Laravel >= 5.1.9 and supports the following browsers (desktop and mobile): Chrome, Firefox, Opera, Safari, MS Edge and IE10+.