I'm using S3 to store my files. I have a video saved in my directory. I want to take the video from S3 and save it to a record in my DB. This is the code I'm using:
$file = Storage::get('input/TESTING.mp4');
$newer->video = $file;
I'm getting this error (which comes from the second line of my code):
file_exists() expects parameter 1 to be a valid path, string given
The file does exist, I'm 100% sure, Laravel is finding it. I used the Storage::exists() function to test that.
I'm not sure what the problem is, any help would be appreciated.