LaravelPackages.net
Acme Inc.
Toggle sidebar
yangze/laraveladminposttemplate

在 laravel-admin 后台生成通用文章模型, 包含分类,文章,评论和统计4个模块

12
0
v1.0.1
About yangze/laraveladminposttemplate

yangze/laraveladminposttemplate is a Laravel package for 在 laravel-admin 后台生成通用文章模型, 包含分类,文章,评论和统计4个模块. It currently has 0 GitHub stars and 12 downloads on Packagist (latest version v1.0.1). Install it with composer require yangze/laraveladminposttemplate. Discover more Laravel packages by yangze or browse all Laravel packages to compare alternatives.

Last updated

LaravelAdminPostTemplate

Latest Version on Packagist Total Downloads Build Status StyleCI

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 [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

Star History Chart