Check out example codes for "check already exists from non deleted rows laravel". It will help you in understanding the concepts better.
Code Example 1
'name' => 'required|min:1|unique:versions,name,NULL,id,deleted_at,NULL'
Learn ReactJs, React Native from akashmittal.com