composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
[Symfony\Component\Debug\Exception\FatalThrowableError]
Parse error: syntax error, unexpected '\' (T_SL), expecting ']'
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Got just that same error
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
[Symfony\Component\Debug\Exception\FatalThrowableError]
Parse error: syntax error, unexpected '\' (T_SL), expecting ']'
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
This #19939 should fix the issue, unless there's another conflict somewhere.
thanks that did fix for me.
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
Most helpful comment
This #19939 should fix the issue, unless there's another conflict somewhere.