softok2/filament-starter-kit
最新稳定版本:1.0.0
Composer 安装命令:
composer require softok2/filament-starter-kit
包简介
A set of basic packages to start with filament
README 文档
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.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-16