tomatophp / filament-developer-gate
Secure your selected route by using a middleware with static password for developers only
Fund package maintenance!
3x1io
Installs: 13 265
Dependents: 4
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^8.1|^8.2
- filament/filament: ^3.0.0
- filament/notifications: ^3.0.0
- tomatophp/console-helpers: ^1.1
README
Filament developer gate
Secure your selected route by using a middleware with static password for developers only
Screenshots
Installation
composer require tomatophp/filament-developer-gate
finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php
$panel->plugin(\TomatoPHP\FilamentDeveloperGate\FilamentDeveloperGatePlugin::make())
Usage
to secure selected resource or page you can use this trait
use TomatoPHP\FilamentDeveloperGate\Traits\InteractWithDeveloperGate;
or you can use the middleware direct on your routes like this
Route::middleware([\TomatoPHP\FilamentDeveloperGate\Http\Middleware\DeveloperGateMiddleware::class])->group(function () { Route::get('/dashboard', function () { return view('dashboard'); })->name('dashboard'); });
you can add a logout action button to your page or resource by using this trait
use TomatoPHP\FilamentDeveloperGate\Traits\DeveloperGateLogoutAction;
Publish Assets
you can publish config file by use this command
php artisan vendor:publish --tag="filament-developer-gate-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-developer-gate-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-developer-gate-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-developer-gate-migrations"
Other Filament Packages
Checkout our Awesome TomatoPHP