prashant-shukla / filament-title-with-slug
TitleWithSlugInput - FilamentPHP 表单构建器易于编辑标题和永久链接 (PHP / Laravel / Livewire)
dev-main
2024-01-30 09:17 UTC
Requires
- php: ^8.0.2
- filament/filament: ^3.2
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0|^8.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- spatie/laravel-ray: ^1.31
This package is auto-updated.
Last update: 2024-08-30 01:38:41 UTC
README
此包为 FilamentPHP 添加了表单组件 TitleWithSlugInput,允许轻松编辑标题和永久链接。
它灵感来源于经典的 WordPress 标题 & 永久链接 实现。
插件完全可配置。您可以更改所有标签,使用自己的链接生成器,使用 route() 生成“查看”链接,隐藏主机名,等等。请参阅 完整文档
TitleWithSlugInput::make( fieldTitle: 'title', // The name of the field in your model that stores the title. fieldSlug: 'slug', // The name of the field in your model that will store the slug. ),