laravel validation required if and exist in db code example Example: laravel exists validation 'state_id' => 'exists:states,id'