PHP code example of tomatophp / filament-developer-gate

1. Go to this page and download the library: Download tomatophp/filament-developer-gate 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/ */

    

tomatophp / filament-developer-gate example snippets


$panel->plugin(\TomatoPHP\FilamentDeveloperGate\FilamentDeveloperGatePlugin::make())

use TomatoPHP\FilamentDeveloperGate\Traits\InteractWithDeveloperGate;

Route::middleware([\TomatoPHP\FilamentDeveloperGate\Http\Middleware\DeveloperGateMiddleware::class])->group(function () {
    Route::get('/dashboard', function () {
        return view('dashboard');
    })->name('dashboard');
});

use TomatoPHP\FilamentDeveloperGate\Traits\DeveloperGateLogoutAction;
bash
php artisan vendor:publish --tag="filament-developer-gate-config"
bash
php artisan vendor:publish --tag="filament-developer-gate-views"
bash
php artisan vendor:publish --tag="filament-developer-gate-lang"
bash
php artisan vendor:publish --tag="filament-developer-gate-migrations"