Unable to store files.
Hi, I have a problem when I try to execute the next code:
$path = $request->photo->store('images');
Always get the next error:
Whoops, looks like something went wrong. 1/1 ErrorException in FilesystemAdapter.php line 146: fopen(): Filename cannot be empty in FilesystemAdapter.php line 146 at HandleExceptions->handleError(2, 'fopen(): Filename cannot be empty',
But if I run the application through
php artisan servethe problem doesn´t appears.
So, what is the problem?
Thanks for help.