This is my first time uploading files and I have been watching videos and some online tutorials and I noticed that there are a few ways to do the upload which is a little overwhelming by not understanding the use cases.
I have seen people using the
move() method, some others use the
storeAs() method, some others using
Storage::disk() and some other using
request()->file()->store(), anyways for now I would like to focus on the
move() and the
Can someone give me a quick explanation on when would you use one over the other?
storeAs() // Store the uploaded file on a filesystem disk.
move() // Move a file to a new location.