adminarchitect / pages

此包最新版本(v2.0.0)没有提供许可证信息。

Admin Architect - Pages 模型

v2.0.0 2017-08-01 06:29 UTC

This package is not auto-updated.

Last update: 2024-09-15 23:08:56 UTC


README

adminarchitect/pages 为 Admin Architect 页面模块提供默认的骨架。它包括页面模块、eloquent 模型和页面仓库。

安装

注意: 这不是一个独立的包,它只能与 Admin Architect (terranet/administrator) 包一起使用。

然后引入它

composer require adminarchitect/pages

通过向 app/config.php 的 providers 部分添加来注册 Pages 服务提供者

'providers' => [
	...
	Terranet\Pages\ServiceProvider::class
	...
]

现在您可以通过运行以下命令发布整个包资源

php artisan vendor:publish [--provider="Terranet\\Pages\\ServiceProvider"]

模块

Pages 模块将被复制到 app\Http\Terranet\Administrator\Modules 目录。

模型

关联的 eloquent 模型 Page 也将添加到 app 目录。

路由

路由将在 app\Http\Terranet\Pages\routes.php 中可用。

迁移

运行 artisan 命令以创建迁移

php artisan pages:table

这将在 database/migrations 目录中创建迁移文件...

运行迁移

php artisan migrate

享受吧!