give both of your buttons the same name but different values
Then you can check the value in the request.
being within the FormRequest, you can use $this to access the values.
for instance, in your form
<button class="btn" type="Submit" value="save" name="submit">Save</button>
<button class="btn" type="Submit" value="update" name="submit">Update</button>
then in the form request
public function rules()
{
$myrule = [ 'name' => 'required', 'age' => 'required' ];
if ($this->submit == 'save') {
$myrule['application_form'] = 'required';
} elseif ($this->submit=='update') {
$myrule['application_form'] = 'required_without:is_application_form';
}
return $myrule;
}
bit puzzled how a user chooses between save and update though?... don't they mean the same thing?