Customization

Assets

If you wish to edit something in the JavaScript/Sass files, you have to compile them with Laravel Mix.

From your terminal, cd into the avatar directory and install the npm dependencies:

With npm:

npm install

Or the recommended way, with Yarn:

yarn 

After you make your changes run npm run build to compile the assets.

Each time the assets are compiled you have to run

php artisan vendor:publish --provider="Botble\Avatar\AvatarServiceProvider" --tag=public --force

to override them in your public directory.

Or you edit the webpack.mix.js and change the publicPath variable:

const publicPath = './../public/vendor/avatar'

Assuming that you have the avatar folder in your project root directory.

Views

If you wish to customize the views run:

php artisan vendor:publish --provider="Botble\Avatar\AvatarServiceProvider" --tag=views --force

Then edit them from resources/views/vendor/avatar.

Translations

php artisan vendor:publish --provider="Botble\Avatar\AvatarServiceProvider" --tag=lang --force

{info} See Overriding Vendor Language Files.