laravel-generator icon indicating copy to clipboard operation
laravel-generator copied to clipboard

[Enhancement]: Unit test has issue if unique rule used in model

Open aneetkukreja1 opened this issue 3 years ago • 2 comments

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.

aneetkukreja1 avatar Jun 19 '21 19:06 aneetkukreja1

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

vishalinfyom avatar Jul 24 '21 11:07 vishalinfyom

I think we already have an open issue for unique handling. so this should be handled when that is fixed.

mitulgolakiya avatar Jan 28 '22 04:01 mitulgolakiya