grundmanis/laracms-pages

Laracms 页面模块

dev-master 2019-12-13 03:12 UTC

This package is auto-updated.

Last update: 2024-09-13 13:08:45 UTC


README

这是一个Laracms 模块。该模块允许您为网站创建带有URL的新页面。

laracms dashboard

如何使用

发布页面布局以供修改

php artisan vendor:publish --tag=laracms_pages

然后,在 resources/views/laracms/pages/layouts 目录下将出现2个已创建的布局,您可以在该文件夹中创建自己的布局,它们将被 laracms 自动获取。

点击“页面”菜单项或访问 yourhost.com/laracms/pages/,通过使用唯一URL创建新页面,选择布局并输入一些文本。现在,您可以看到您的页面:yourhost.com/whatever_created_page_slug_here

安装

运行

composer require grundmanis/laracms-pages

然后运行迁移

php artisan laracms:configure