PHP code example of oriondevelops / filament-greeter
1. Go to this page and download the library: Download oriondevelops/filament-greeter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oriondevelops / filament-greeter example snippets
namespace App\Providers\Filament;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Actions\Action;
use Orion\FilamentBackup\BackupPlugin;
use Orion\FilamentGreeter\GreeterPlugin;
use Orion\FilamentFeedback\FeedbackPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
BackupPlugin::make()
->queue('monitors'),
// ...
GreeterPlugin::make()
->message('Welcome,')
->name('Daenerys Targaryen')
->title('The First of Her Name, the Unburnt, Queen of Meereen, Queen of the Andals and the Rhoynar and the First Men, Khalisee of the Great Grass Sea, Breaker of Chains and Mother of Dragons')
->avatar(size: 'w-16 h-16', url: 'https://avatarfiles.alphacoders.com/236/236674.jpg')
->action(
Action::make('action')
->label('Buy more unsullied')
->icon('heroicon-o-shopping-cart')
->url('https://buyunsulliedonline.com')
)
->sort(-1)
->columnSpan('full'),
// ...
FeedbackPlugin::make()
->sendResponsesTo(email: '[email protected]'),
])
}
}