Laravel Error - fopen error: failed to open stream: Is a directory
My code was:
$request["file"]->storeAs( $request["path"] , $fileName,'mypath');
Cause:
My file size was more than 2 MB and post_max_size Was 2 MB.
Solution:
I also opened php.ini inside the cli folder and made changes to upload_max_filesize and post_max_size, restarted apache2 by running
sudo service apache2 restart
Then quit php artisan server and ng server and restarted them. Now everything works fine!