public function store(CreateApplicationRequest $request)
{
$this->applicationService->store($request);
return redirect()->back()->banner('Application submitted successfully.');
}
CreateApplicationRequest
/**
* Class CreateApplicationRequest.
*/
class CreateApplicationRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required'],
];
}
}
Is there an existing issue for this?
Have you updated Vue FilePond, FilePond, and all plugins?
Describe the bug
The uploaded file inside the Filepond disappears when there is a validation error(other field) of laravel..
Reproduction
Create a form..
controller
CreateApplicationRequest
Environment