Answers for "laravel validation if another record is not deleted / not null"

PHP
0

laravel validation if another record is not deleted / not null

'user_id' =>'required|exists:App\Models\Users,id,deleted_at,!NULL' // if deleted_at is not null
'user_id' =>'required|exists:App\Models\Users,id,deleted_at,NULL' // if deleted_at is null
Posted by: Guest on October-01-2021

Code answers related to "laravel validation if another record is not deleted / not null"

Browse Popular Code Answers by Language