在 laravel-admin 后台生成通用文章模型, 包含分类,文章,评论和统计4个模块
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
This is where your description should go. Take a look at contributing.md to see a to do list.
Via Composer
$ composer require yangze/laraveladminposttemplate
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);
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
MIT. Please see the license file for more information.