I don't know if this is a bug or if it is the expected behavior. If you send only prop using the inertiajs router, Inertia throws away all shared data, including validation errors, I would expect to receive the requested data from the controller and also the validation errors if exist.
ValidationRequest.php
class ValidationRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'field' => 'required'
];
}
}
TestController.php
public function test(ValidationRequest $request) {
return [];
}
I don't know if this is a bug or if it is the expected behavior. If you send
only
prop using the inertiajs router, Inertia throws away all shared data, including validation errors, I would expect to receive the requested data from the controller and also the validation errors if exist.