3

I want to run artisan command and i can't because of the problem.

I try to search answer in the internet but there is no solution for my error. There are solutions for other type of errors, but there is no information for this one.

php artisan ... -> gives no result all of this composer commands throw an exception: composer install, composer update, composer dump-autoload ...

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump

@php artisan package:discover --ansi

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

Community
  • 1
  • 1

1 Answers1

3

My solution (Laravel 6) was to run the following commands from the root of the application:

mkdir -p storage/framework
mkdir -p storage/framework/sessions
mkdir -p storage/framework/views
mkdir -p storage/framework/cache

And then rerun

php artisan package:discover --ansi
saswanb
  • 1,975
  • 1
  • 17
  • 25