Vue Avatar (https://eliep.github.io/vue-avatar/) Field wrapper for Laravel Nova (https://nova.laravel.com/)
marispro/nova-vue-avatar is a Laravel package for vue avatar (https://eliep.github.io/vue-avatar/) field wrapper for laravel nova (https://nova.laravel.com/).
It currently has 0 GitHub stars and 17.340 downloads on Packagist (latest version 0.6).
Install it with composer require marispro/nova-vue-avatar.
Discover more Laravel packages by marispro
or browse all Laravel packages to compare alternatives.
Last updated
Vue Avatar wrapper for Laravel Nova
![]()
composer require marispro/nova-vue-avatar
<?php
namespace App\Nova;
use Marispro\NovaVueAvatar\NovaVueAvatar as Avatar;
class User extends Resource
{
public function fields()
{
return [
Avatar::make('Name', 'Avatar'), // by default field - Name, column name - Avatar (optional)
->rounded(false) // disable rounded corners (optional, default: true)
->size() // set avatar size (optional, default: 40)
->image('https://eliep.github.io/vue-avatar/static/darth-vader.png'), // specify avatar as image (optional)
->color('#fff') // specify text color (optional, default: white)
];
}
}
Avatar::make(function($user){
return $user->firstname . ' ' . $user->lastname;
}),