Coder Social home page Coder Social logo

tomatophp / filament-developer-gate Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 1.62 MB

Secure your selected route by using a middleware with static password for developers only

Home Page: https://tomatophp.com

License: MIT License

PHP 66.52% Blade 33.48%
developer-tools filamentphp filamentphp-plugin gate security developer-access

filament-developer-gate's Introduction

Screenshot

Filament developer gate

Latest Stable Version PHP Version Require License Downloads

Secure your selected route by using a middleware with static password for developers only

Screenshots

Login Logout

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

Support

you can join our discord server to get support TomatoPHP

Docs

you can check docs of this package on Docs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

Please see SECURITY for more information about security.

Credits

License

The MIT License (MIT). Please see License File for more information.

filament-developer-gate's People

Contributors

3x1io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wh-cloudmazing

filament-developer-gate's Issues

Make logout redirect dynamic

The getHeaderActions() method in vendor\tomatophp\filament-artisan\src\Pages\Artisan.php currently uses a static redirect to 'admin/developer-gate'. This should be changed to a dynamic redirect to improve flexibility and compatibility with different Filament installations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.