https://github.com/tomatophp/filament-developer-gate
Secure your selected route by using a middleware with static password for developers only
https://github.com/tomatophp/filament-developer-gate
developer-access developer-tools filamentphp filamentphp-plugin gate security
Last synced: 8 months ago
JSON representation
Secure your selected route by using a middleware with static password for developers only
- Host: GitHub
- URL: https://github.com/tomatophp/filament-developer-gate
- Owner: tomatophp
- License: mit
- Created: 2024-04-06T16:02:39.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-08-20T17:29:49.000Z (10 months ago)
- Last Synced: 2025-08-20T19:34:18.692Z (10 months ago)
- Topics: developer-access, developer-tools, filamentphp, filamentphp-plugin, gate, security
- Language: PHP
- Homepage: https://tomatophp.com/en/open-source/filament-developer-gate
- Size: 3.33 MB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome - Filament Developer Gate
README

# Filament developer gate
[](https://github.com/tomatophp/filament-developer-gate/actions/workflows/dependabot/dependabot-updates)
[](https://github.com/tomatophp/filament-developer-gate/actions/workflows/fix-php-code-styling.yml)
[](https://github.com/tomatophp/filament-developer-gate/actions/workflows/tests.yml)
[](https://packagist.org/packages/tomatophp/filament-developer-gate)
[](https://packagist.org/packages/tomatophp/filament-developer-gate)
[](https://packagist.org/packages/tomatophp/filament-developer-gate)
Secure your selected route by using a middleware with static password for developers only
## Screenshots



## Installation
```bash
composer require tomatophp/filament-developer-gate
```
finally reigster the plugin on `/app/Providers/Filament/AdminPanelProvider.php`
```php
$panel->plugin(\TomatoPHP\FilamentDeveloperGate\FilamentDeveloperGatePlugin::make())
```
## Usage
to secure selected resource or page you can use this trait
```php
use TomatoPHP\FilamentDeveloperGate\Traits\InteractWithDeveloperGate;
```
or you can use the middleware direct on your routes like this
```php
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
```php
use TomatoPHP\FilamentDeveloperGate\Traits\DeveloperGateLogoutAction;
```
or you can use direct action like this
```php
use TomatoPHP\FilamentDeveloperGate\Actions\DeveloperLogoutAction;
DeveloperLogoutAction::make();
```
## Publish Assets
you can publish config file by use this command
```bash
php artisan vendor:publish --tag="filament-developer-gate-config"
```
you can publish views file by use this command
```bash
php artisan vendor:publish --tag="filament-developer-gate-views"
```
you can publish languages file by use this command
```bash
php artisan vendor:publish --tag="filament-developer-gate-lang"
```
you can publish migrations file by use this command
```bash
php artisan vendor:publish --tag="filament-developer-gate-migrations"
```
## Testing
if you like to run `PEST` testing just use this command
```bash
composer test
```
## Code Style
if you like to fix the code style just use this command
```bash
composer format
```
## PHPStan
if you like to check the code by `PHPStan` just use this command
```bash
composer analyse
```
## Other Filament Packages
Checkout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)