PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 17, 2022

[FIXED] problem with laravel when run composer install

 January 17, 2022     composer-php, git-clone, laravel, laravel-4     No comments   

Issue

i have a laravel project on my github. and i recently cloned to my pc but for some reason i got this error:

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

In Compiler.php line 36:

Please provide a valid cache path.


Script @php artisan package:discover handling the post-autoload-dump event 
returned with error code 1

I created cache, sessions and framework folder inside storage folder but it does not work.

I also tried many things I read on forums and here on stack but nothing works with me.

i really don't know what's happening.


Solution

At first run: composer update

Create these folders under storage/framework:

  • sessions
  • views
  • cache

and run this below commands:

  • php artisan cache:clear
  • php artisan config:clear
  • php artisan view:clear


Answered By - Manzurul Hoque Rumi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing