laravel5-5-example icon indicating copy to clipboard operation
laravel5-5-example copied to clipboard

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

Open martinym28 opened this issue 7 years ago • 5 comments

It is great resource and example for newcomers. Thanks for your contribution!

After install have some problems 1-------------- composer install

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

[Exception] It is unsafe to run Dusk in production.

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

1-------------- Fixed it at to add composer.json:

"extra": { "laravel": { "dont-discover": [ "laravel/dusk" ] } }, Refer https://github.com/acacha/adminlte-laravel/issues/337

martinym28 avatar Nov 08 '17 06:11 martinym28

2-------------- CKEditor missing?

martinym28 avatar Nov 08 '17 06:11 martinym28

Right for dusk, changed in this commit.

But should install with --no-dev option in production.

For CKEditor it's using CDN version. Look at views.

bestmomo avatar Nov 08 '17 09:11 bestmomo

Thanks for reply and CKEditor work now!

martinym28 avatar Nov 08 '17 20:11 martinym28

Generating optimized autoload files

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

In ResourceRegistrar.php line 360:

Object of class Closure could not be converted to string

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1 I'm using laravel 5.6

mohannad1995 avatar Nov 23 '18 19:11 mohannad1995

Script https://github.com/php artisan package:discover handling the post-autoload-dump event returned with error code 1 same problem i got but doesn't solved i am using laravel 9.x please help me

Atiullah123 avatar Sep 21 '22 05:09 Atiullah123