andersao / andersao/l5-repository
Entity and Validator Generator fails when used with Laravel 5.3
オープン
- 主要言語
- PHP
- スター
- 4.2k
- フォーク
- 880
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When using the generator example with --fillable and --rules arguments from the README (provided below), the generators doesn't map key, value pair correctly.
````
php artisan make:entity Cat --fillable="title:string,content:text" --rules="title=>required|min:2, content=>sometimes|min:10"
````
This is because Laravel 5.2 array_first function takes $key, $value [according to docs](https://laravel.com/docs/5.2/helpers#method-array-first) and Laravel 5.3 takes $value, $key [according to docs](https://laravel.com/docs/5.3/helpers#method-array-first)
PR provided.
コントリビューションガイド
評価
この issue はまだ評価されていません。