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 … Read more

bash : Bad Substitution

The default shell (/bin/sh) under Ubuntu points to dash, not bash. So if you chmod +x your_script_file.sh and then run it with ./your_script_file.sh, or if you run it with bash your_script_file.sh, it should work fine. Running it with sh your_script_file.sh will not work because the hashbang line will be ignored and the script will be … Read more

“Unable to find remote helper for ‘https'” during git clone

It looks like not having (lib)curl-devel installed when you compile git can cause this. If you install (lib)curl-devel, and then rebuild/install git, this should solve the problem: This worked for me on Centos 6.3. If you don’t have yum, you can download the source to curl-devel here: http://curl.se/dlwiz/?type=devel If you are running Ubuntu instead:

E: Unable to locate package mongodb-org

I faced same issue but fix it by the changing the package file section command. The whole step that i followed was: At first try with this command: sudo apt-get install -y mongodb This is the unofficial mongodb package provided by Ubuntu and it is not maintained by MongoDB and conflict with MongoDB’s offically supported … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)