andersao / andersao/l5-repository

Entity and Validator Generator fails when used with Laravel 5.3

オープン
#325 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。