title: Validate downloaded file from remote Url using Laravel 5.4
body: <p>In Laravel 5.4, when a form submission is made, the file(if any) in the request is passed to the Illuminate\Http\File or Illuminate\Http\UploadedFile instance. But let's say instead of the file, a url of that file is passed as the input. Naturally, the server will have to make a request to that input url to download the file. How will you validate the file in this scenario? (lets say I want to check if its an image or a video)</p>