laravel-generator
laravel-generator copied to clipboard
[Enhancement]: Unit test has issue if unique rule used in model
General unique rule syntax is unique:table, but it creates issue in update request to ignore current model. Currently it works if unique rule is defined as unique:table,fieldName but it should also work as unique:table only.
Hii @aneetkukreja1 ,
We have write sample unite tests, that are not using $rules, so it will run fine.
Still, let us know the exact steps, so we can produce it.
Thanks
I think we already have an open issue for unique handling. so this should be handled when that is fixed.