I got a problem with validation rules with nested conditions.
class StoreRequest extends Request { public function authorize(){ return true;
try this,
class StoreRequest extends Request { public function authorize(){ return true; } public function rules(){ return [ 'type_id' => 'required|integer', 'external_id' => 'required_if:type_id|in:3|integer', ]; } }