Posts

Showing posts with the label Laravel 4

Laravel Composer main Command

Laravel Composer main Command These are the main composer command which is necessary when you install first time a Laravel Project. composer self-update - It will self update the composer composer update - It will update the all library or packages for laravel project composer dump-autoload - This will update the autoload, If any file is update or class added composer dumpautoload - This is same function as above

app/storage/meta/services.json: failed to open stream: Permission denied - Laravel 4

If you are getting this error on your laravel 4 installation so put the steps as i mention below Error is like this in laravel 4 ErrorException file_put_contents(/var/www/vhosts/folder/app/storage/meta/services.json): failed to open stream: Permission denied  That means permission is not granted to write for meta folder so you need to run these command on your server from your root folder Step 1: Come to your root folder var/www/vhosts/yousite_folder/ Step 2: Run this command first find app/storage -type d -exec chmod 777 {} \; Step 3: Run this command now find app/storage -type f -exec chmod 777 {} \; These command will chmod all directories and files in app/storage to 777.  Done!! Now you can refresh your page and working fine. If this post help you please submit a comment in post to inspire me :)