Have you got created a form yet?
Check out the many tutorials available on google such as: https://quickadminpanel.com/blog/file-upload-in-laravel-the-ultimate-guide/
I want to upload a random file which will select from computer and upload?
Hey @spiral
As @ftiersch said, the user needs to upload the file in a form. This is normally done via an <input type="file" id="file" name="file">
The controller would then take the file and you would specify the path in which to place the file for safe keeping. After that you would extract the file name and write the file name to one of the columns in your database. (You wouldn't normally store it directly into the database.)
To call upon the file you would send the data from the controller to the view file and then place an anchor tag so that the user can download. Something along the lines of
<a download href="{{ URL::to('/') }}/yourfolder/{{ $yourvariable->column_name }}">Download</a>
Did you check out the tut i sent a link for earlier?
Please or to participate in this conversation.