softok2 / filament-starter-kit
A set of basic packages to start with filament
Fund package maintenance!
softok2
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/softok2/filament-starter-kit
Requires
- php: ^8.2
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.25
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
README
Wrap a set of basic packages to start with filament projects.
Support us
Installation
You can install the package via composer:
composer require softok2/filament-starter-kit
Start by executing the instalation command:
php artisan filament-starter-kit:install
Configuration steps:
- Add the theme’s CSS file to the Laravel plugin’s
inputarray invite.config.js:
input: [
// ...
'resources/css/filament/admin/theme.css',
]
- Now, register the Vite-compiled theme CSS file in the panel’s provider:
use Filament\Panel; public function panel(Panel $panel): Panel { return $panel // ... ->viteTheme('resources/css/filament/admin/theme.css') ->sidebarCollapsibleOnDesktop() ->topbar(false); }
- Add installed plugins to AdminPanelServiceProvider:
->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(), ]);
- Add the following to your
app.jsfile to process static assets with vite:
import.meta.glob([
'../images/**',
'../fonts/**',
]);
- Finally, in your AppServiceProvider, add the following to register the sidebar toggle hook:
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() ); }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.