marshmallow / pages
这个包提供了在 Laravel 中轻松管理页面的功能。这实际上是一系列第三方 composer 包的集合,合并在一起以便快速复用。
v4.0.5
2024-05-28 14:02 UTC
Requires
- php: ^8.0
- laravel/helpers: ^1.2
- laravel/nova: ^4.0
- marshmallow/commands: ^1.0
- marshmallow/helpers: ^2.0
- marshmallow/nova-flexible: ^2.0
- marshmallow/nova-fontawesome: ^2.0
- marshmallow/nova-multiselect-field: ^5.0
- marshmallow/nova-tabs: ^2.0
- marshmallow/nova-tinymce: ^2.1
- marshmallow/redirectable: ^2.0
- marshmallow/seoable: ^3.0
- marshmallow/sluggable: ^1.0
- marshmallow/translatable: ^2.0
- dev-master
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.1.0
- v3.0.1
- v3.0.0
- v2.8.1
- v2.8.0
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.1
- v2.4.0
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/github_actions/overtrue/phplint-9.4
- dev-fixes
- dev-nova4
- dev-dependabot/composer/marshmallow/nova-tabs-tw-2.0or-tw-9999999.0
- dev-development
- dev-stefvanesch-patch-1
This package is auto-updated.
Last update: 2024-09-05 08:48:50 UTC
README
Laravel Nova Pages
这个页面为您提供了在 Laravel Nova 中轻松创建和管理页面及其内容的工具。
安装
Composer
您可以通过 composer 安装这个包
composer require marshmallow/pages
运行 artisan 命令
发布灵活配置包中的配置,迁移以创建页面表,并创建 Laravel Nova 资源来管理您的页面。
php artisan pages:install
用法
您可以将 {!! Page::render($page) !!}
添加到您的 blade 文件中,以渲染与页面关联的布局。您也可以自己遍历它们,如果这样更有帮助的话;
@foreach ($layouts as $layout) {{ $layout->render() }} @endforeach
添加新的布局
您可以通过包含在此包中的 marshmallow/flexible
包提供的命令生成新的布局。运行以下命令以生成新的布局。
php artisan marshmallow:layout
接下来,您需要将新生成的布局添加到您的 flexible
配置中。
/** * config/flexible.php */ return [ /** * Your custom layouts. Please check the readme.md file for more * information about these custom layouts. */ 'layouts' => [ 'sluggable-name-of-your-layout' => \App\Flexible\Layouts\LayoutClassName::class ], ];
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
安全性
如果您发现任何安全相关的问题,请发送电子邮件至 stef@marshmallow.dev,而不是使用问题跟踪器。
致谢
许可
MIT 许可证 (MIT)。请参阅 许可文件 了解更多信息。