In my controller there are a bunch of validations. After validating them I check if a certain element is present in the session. If that element is absent then I send another error. I want to show all the validation error and other error together.
 $this->validate($request,[
        'other11' => 'nullable|image',
        'other12' => 'nullable|image',
        'other13' => 'nullable|image',
        'other14' => 'nullable|image',
        'other15' => 'nullable|image',
    ]);
    if(session()->get('media')['other10']==NULL)
    {
        return back()->withErrors(['other10'=>'No data in session']);
    }
Currently, if there is a validation error then the error regarding 'other10' field is not displayed in the view. Is there a way to return both the validation error and the error regarding 'other10' together to the view?


