When you submit the form are you providing the input_img file or are you sending an empty form to test the validation?
When you say that you're getting an error page with no message do you mean a blank page? Or are you getting the form back but you can't see the validation messages?
The only thing wrong I noticed is this line in the controller that seems out of place:
$this->save();
Also, the form action isn't exactly the same as your route's path, but I'm guessing that's because you have a route group that's adding a prefix.
It would be nice to be able to look at the full form, to check the file input too.
@mokrani building on Snapey reply. Try this code. Laravel has a StoreAs helper for storage. storeAs method, which accepts the path, file name, and disk name as its arguments. We will just path images and filename as you format
public function uploadimage(Request $request)
{
// removing validation for brevity sake
if ($request->has("input_img")) {
$image = $request->input_img;
return $image->storeAs('images', (time().'.'.$image->getClientOriginalExtension()))
? "Image Upload successfully"
: "Oops something went wrong";
}
}