From 2ce8ef8387840157be2a848c64b9123f1dd2e4a2 Mon Sep 17 00:00:00 2001 From: Seth Phat Date: Thu, 13 Apr 2023 21:50:55 +0700 Subject: [PATCH] v1.2.0 --- README.md | 19 ++++++++++++------- composer.json | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 01b86fd..bfac856 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,12 @@ Laravel auto-discovery will automatically do the magic for you. ## Use the command ```bash -php artisan eloquent:phpdoc App\Models\User # view only -php artisan eloquent:phpdoc App\Models\User --write # view & write to file -php artisan eloquent:phpdoc App\Models\User --short-class # new option - use short class instead of full namespace path +php artisan eloquent:phpdoc "App\Models\User" # view only +php artisan eloquent:phpdoc "App\Models\User" --write # view & write to file +php artisan eloquent:phpdoc "App\Models\User" --short-class # new option - use short class instead of full namespace path + +# from v1.2.0 +php artisan eloquent:bulk-phpdoc "app/Models/*.php" # bulk generation (force write mode) ``` Result: @@ -79,7 +82,7 @@ Result: */ ====== End PHPDOC scope of App\Models\User Wrote phpDoc scope to //app/Models/User.php -Thank you for using SethPhat/EloquentDocs! +Thank you for using EloquentDocs! ``` @@ -110,8 +113,10 @@ For this case, EloquentPhpDoc will always return `mixed` - Supported Laravel 10 - Deprecated Laravel 8 - Deprecated PHP 8.0 -- v1.2.0 (in development) - - Bulk generating from `--path=` +- v1.2.0 + - New command to bulk generate from a given model path. + - `php artisan eloquent:bulk-phpdoc "app/Models/*.php"` + - Fixed an issue where accessors/attributes being generated as snake_case. Should be camelCase. ## Contribute to the library @@ -126,4 +131,4 @@ MIT License ## Made by - [Seth Phat](https://github.com/sethsandaru) -- (... contributors?) +- And contributors diff --git a/composer.json b/composer.json index c6e805c..d68c6a6 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "sethphat/eloquent-docs", - "version": "1.1.4", + "version": "1.2.0", "description": "Generate PHPDoc scope for your Eloquent models", "type": "library", "require": {