validation laravel where deleted_at is null code example
Example: check if name is unique among non-deleted items laravel
'name' => 'required|min:1|unique:versions,name,NULL,id,deleted_at,NULL'
'name' => 'required|min:1|unique:versions,name,NULL,id,deleted_at,NULL'