Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
martinym28 opened this issue Nov 8, 2017 · 5 comments

Comments

@martinym28
Copy link

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 mdbootstrap/adminlte-laravel#337

@martinym28
Copy link
Author

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

@bestmomo
Copy link
Owner

bestmomo commented Nov 8, 2017

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
Copy link
Author

Thanks for reply and CKEditor work now!

@mohannad1995
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants