sakanjo / filament-layout-inspector
直观检查您的 Filament 应用布局。
v1.0.0
2024-05-04 12:24 UTC
Requires
- php: ^8.2
- filament/filament: ^3.2
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.1
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.3
- pestphp/pest-plugin-livewire: ^2.1
- phpstan/phpstan: ^1.1
This package is auto-updated.
Last update: 2024-09-20 19:38:30 UTC
README
直观检查您的 Filament 应用布局。
✨ 通过赞助我来支持该包的维护。
目录
📦 安装
- 通过 composer 安装包
composer require --dev sakanjo/filament-layout-inspector
- 将插件的视图添加到您的 tailwind.config.js 文件中。
content: [ './vendor/sakanjo/filament-layout-inspector/resources/**/*.blade.php', ]
🦄 用法
<?php // ... use SaKanjo\FilamentLayoutInspector\LayoutInspectorPlugin; public function panel(Panel $panel): Panel { return $panel ->plugin( LayoutInspectorPlugin::make() ->visible(fn () => app()->isLocal()) ->screens([ '4xl' // max-4xl:hidden '5xl' // max-5xl:hidden ]) ); }
💖 支持开发
你喜欢这个项目吗?通过捐赠来支持它
点击此仓库顶部的"💖 赞助"。
©️ 致谢
📄 许可证
MIT 许可证 © 2023-PRESENT Salah Kanjo