PHP code example of twstec / kit-admin
1. Go to this page and download the library: Download twstec/kit-admin 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/ */
twstec / kit-admin example snippets
use Twstec\Kit\Admin\AdminPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->plugin(AdminPlugin::make());
}
}
$panel
->default()->id('admin')->path('painel')
->plugin(AdminPlugin::make())
->brandName('Minha Empresa')
->colors(['primary' => Color::Indigo])
->viteTheme('resources/css/filament.css')
// telas próprias do aplicativo
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
// outro plugin, como a demonstração do kit faz
->plugin(MeuPlugin::make());