Gravatar
Replace Filament's default avatar url provider with one for Gravatar.
Author:
Adam Weston
Documentation
- Compatibility
- Installation
- Global Defaults
- Additional Info
- Contributing
- Security Vulnerabilities
- Credits
- License
Replace Filament's default avatar url provider with one for Gravatar.
#Compatibility
| Package Version | Filament Version |
|---|---|
| 1.x | 2.x |
| 2.x | 3.x |
| 3.x | 4.x |
| 4.x | 5.x |
#Installation
First, install the plugin with composer.
composer require awcodes/filament-gravatar
Next, add the GravatarProvider to your panel.
use Awcodes\Gravatar\GravatarProvider;
use Awcodes\Gravatar\GravatarPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->defaultAvatarProvider(GravatarProvider::class)
->plugins([
GravatarPlugin::make(),
])
}
#Global Defaults
You can modify the global defaults by using the following methods on the GravatarPlugin.
use Awcodes\Gravatar\GravatarPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
GravatarPlugin::make()
->default('robohash')
->size(200)
->rating('pg'),
])
}
#Additional Info
You can also use the Awcodes\Gravatar\Gravatar class by itself should you need to outside a panel.
Awcodes\Gravatar\Gravatar::get(
string $email = null,
int $size = 80,
string $default = 'mp',
string $rating = 'g',
bool $asImage = false,
array $attributes = []
);
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
Adam is a full-stack web developer (with a focus on Laravel) who has been coding for close to 20 years. He is a core Filament team member as well and has authored numerous plugins for Filament such as Curator, Tiptap Editor and Table Repeater, to name a few. You can learn more about Adam on his website.
From the same author
Botly
Botly is a Filament plugin to manage your site's robots.txt file directly from a Filament admin panel.
Author:
Adam Weston
Table Repeater
A modified version of the Filament Forms Repeater to display it as a table.
Author:
Adam Weston
Tiptap Editor
A Rich Text Editor plugin for Filament Forms.
Author:
Adam Weston
Quick Create
Plugin for Filament Panels that adds a dropdown menu to the header to quickly create new items.
Author:
Adam Weston
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission