bestmomo / laravel5-5-example

Laravel 5.5 example for tutorial
217 stars 121 forks source link

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

Open martinym28 opened 6 years ago

martinym28 commented 6 years ago

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 commented 6 years ago

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

bestmomo commented 6 years ago

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.

martinym28 commented 6 years ago

Thanks for reply and CKEditor work now!

mohannad1995 commented 5 years ago

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

Atiullah123 commented 2 years ago

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