Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 days 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 (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-11T14:51:50.000Z (3 months ago)
- Last Synced: 2024-09-11T22:57:27.489Z (3 months ago)
- Topics: developer-access, developer-tools, filamentphp, filamentphp-plugin, gate, security
- Language: PHP
- Homepage: https://tomatophp.com
- Size: 2.48 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- 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
README
![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-developer-gate/master/arts/3x1io-tomato-developer-gate.jpg)
# Filament developer gate
[![Latest Stable Version](https://poser.pugx.org/tomatophp/filament-developer-gate/version.svg)](https://packagist.org/packages/tomatophp/filament-developer-gate)
[![License](https://poser.pugx.org/tomatophp/filament-developer-gate/license.svg)](https://packagist.org/packages/tomatophp/filament-developer-gate)
[![Downloads](https://poser.pugx.org/tomatophp/filament-developer-gate/d/total.svg)](https://packagist.org/packages/tomatophp/filament-developer-gate)Secure your selected route by using a middleware with static password for developers only
## Screenshots
![Login](https://raw.githubusercontent.com/tomatophp/filament-developer-gate/master/arts/login.png)
![Logout](https://raw.githubusercontent.com/tomatophp/filament-developer-gate/master/arts/logout-button.png)## 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;
```## 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"
```## Other Filament Packages
Checkout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)