php artisan not working after composer update

Published 2 years ago by wowrudy

Hi, i got same problem like this

https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install/?page=1

i cannot run php artisan command, it show nothing

and if i do composer update i got this error

Script php artisan clear-compiled handling the post-update-cmd event returned with an error                      

i dont have any file on my project :

vendor/compiled.php
storage/framework/compiled.php

or

bootstrap/compiled.php
Best Answer (As Selected By wowrudy)
SaeedPrez

See if any of these solutions work for you..

Solution 1

Removed the bootstrap/cache/config.php file.

composer dumpautoload
composer update.

source

Solution 2

Move php artisan clear-compiled from "pre-update-cmd" to the "post-update-cmd" in your composer.json file

"post-update-cmd": [
  "php artisan clear-compiled",
  "php artisan optimize"
]

source

Solution 3

php artisan optimize --force

source

wizz

Have the same issue.

peterl38

An me...

nicolasey

Any reason ? Any solution ? :)

SaeedPrez

See if any of these solutions work for you..

Solution 1

Removed the bootstrap/cache/config.php file.

composer dumpautoload
composer update.

source

Solution 2

Move php artisan clear-compiled from "pre-update-cmd" to the "post-update-cmd" in your composer.json file

"post-update-cmd": [
  "php artisan clear-compiled",
  "php artisan optimize"
]

source

Solution 3

php artisan optimize --force

source

Sign In or create a forum account to participate in this discussion.