Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsandaru committed Apr 13, 2023
1 parent 345fdc3 commit 2ce8ef8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -79,7 +82,7 @@ Result:
*/
====== End PHPDOC scope of App\Models\User
Wrote phpDoc scope to /<my-path>/app/Models/User.php
Thank you for using SethPhat/EloquentDocs!
Thank you for using EloquentDocs!
```

</details>
Expand Down Expand Up @@ -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

Expand All @@ -126,4 +131,4 @@ MIT License
## Made by

- [Seth Phat](https://github.com/sethsandaru)
- (... contributors?)
- And contributors
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 2ce8ef8

Please sign in to comment.