PHP code example of softok2 / filament-starter-kit

1. Go to this page and download the library: Download softok2/filament-starter-kit 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/ */

    

softok2 / filament-starter-kit example snippets


input: [
    // ...
    'resources/css/filament/admin/theme.css',
]

use Filament\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->viteTheme('resources/css/filament/admin/theme.css')
        ->sidebarCollapsibleOnDesktop()
        ->topbar(false);
}

 ->plugins([
            FilamentApexChartsPlugin::make(),
             AuthUIEnhancerPlugin::make()
                    ->showEmptyPanelOnMobile(false)
                    ->formPanelPosition()
                    ->formPanelWidth('35%')
                    ->emptyPanelBackgroundImageOpacity('50%')
                    ->emptyPanelBackgroundImageUrl('https://public.solicy.net/21/How_to_Develop_a_Mobile_App_9212b1648e.webp'),
                EasyFooterPlugin::make()
                    ->withLogo(
                        Vite::asset('resources/images/softok2_logo.png'),
                        'https://softok2.com',
                        'Desarrollado por',
                    )
                    ->withLinks([
                        ['title' => '+20 años de soluciones digitales', 'url' => 'https://softok2.com'],
                    ])
                    ->withBorder(),
        ]);

use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;

public function boot(): void
{
    FilamentView::registerRenderHook(
        PanelsRenderHook::SIDEBAR_LOGO_AFTER,
        fn (): string => view('filament-starter-kit::hooks.sidebar-toggle')->render()
    );
}
 
bash
php artisan filament-starter-kit:install