try this
your code in try to controller with validation may be its work it
https://stackoverflow.com/questions/23587833/laravel-validation-unique-on-update
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
@foreach($religions as $religion)
@if($religion->value_id == $user->user_info->user_religion)
{{$religion->value_name}}
@endif
@endforeach
here is show three times show data
Here is my data table value
column name
valuename, value_id
muslim => 1,
buddhist => 2,
hindu ] => 3;
muslim = > 1,
hindu => 3,
checking value_id show value name ,
i need answer only muslim when value id match 1
Please or to participate in this conversation.