yangze / laraveladminposttemplate
在 laravel-admin 后台生成通用文章模型, 包含分类,文章,评论和统计4个模块
v1.0.1
2019-12-30 11:32 UTC
Requires
- encore/laravel-admin: ^1.6
- illuminate/support: ~5|~6
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3|~4
- phpunit/phpunit: ^8.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-11-14 18:39:46 UTC
README
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.