Laravel 5.2 Storage::makeDirectory($dir) is not creating directory

Well… I figured out what was going on.

File::exists(public_path() . "/video/$user") is looking for this:

/home/ubuntu/workspace/site/public/video/N


And Storage::makeDirectory(public_path() . "/video/$user") is creating a directory in:

/home/ubuntu/workspace/site/storage/app/public/video/N


So I can go to site/config/filesystems.php and change the routes for app and app/public ; you can check them by using the helper storage_path('app').
But, instead, I decided to save the videos in the storage/app/public/video and storage/app/public/thumbnails, and I am getting some package’s error.

But, both paths are writable and should be working by now.

Leave a Comment