laraveladminposttemplate maintained by yangze
Description
在 laravel-admin 后台生成通用文章模型, 包含分类,文章,评论和统计4个模块
Author
Last update
2020/06/14 11:06
(dev-master)
License
Downloads
12
Tags
LaravelAdminPostTemplate
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require yangze/laraveladminposttemplate
Usage
run generator command
php artisan admin:post-template --module=Crm --post=Post --cat=Category --stat=Statistic --comm=Comment --force
and then do like this
**************************
* generator file *
**************************
ApiController.php OK
CategoryController.php OK
CommentController.php OK
PostController.php OK
2019_12_26_171317_create_crm_category_table.php OK
2019_12_26_171317_create_crm_comment_table.php OK
2019_12_26_171317_create_crm_post_table.php OK
2019_12_26_171317_create_crm_statistic_table.php OK
CategoryModel.php OK
CommentModel.php OK
PostModel.php OK
StatisticModel.php OK
***************************************
* the next step you should do *
***************************************
// crm
$router->resource('crm/post', Crm\PostController::class);
$router->resource('crm/category', Crm\CategoryController::class);
$router->resource('crm/comment', Crm\CommentController::class);
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email zhenyangze@gmail.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.