angel/blog

此软件包最新版本(0.0.4)没有可用的许可信息。

0.0.4 2014-12-09 19:50 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:44:01 UTC


README

这是一个为 Angel CMS 开发的博客模块。

安装

将以下要求添加到您的 composer.json 文件中

"require": {
  "angel/blog": "dev-master"
},

执行 composer update 命令以安装软件包。

将以下服务提供者添加到您的 app/config/app.php 文件中的 providers 数组

'Angel\Blog\BlogServiceProvider'

执行以下命令

php artisan migrate --package="angel/blog"  # Run the migrations

打开您的 app/config/packages/angel/core/config.php 文件,并将博客路由添加到 menu 数组中

'menu' => array(
	'Pages' => 'pages',
	'Menus' => 'menus',
	'Blog' => 'blog', // <--- Add this line
	'Users' => 'users',
	'Settings' => 'settings'
),

...并将可链接的模型添加到 linkable_models 数组中

'linkable_models' => array(
	'Page' => 'pages',
	'Blog' => 'blog' // <--- Add this line
)