Writing lock file
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
In app.php line 178:
syntax error, unexpected ''App'' (T_CONSTANT_ENCAPSED_STRING), expecting ']
'
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
How are we expected to help you when you won't tell us which Laravel version you are using?
The file and row number mention indicates that it's a problem in your installation, in config/app.php and the list of service providers, and not in the framework.
As @sisve said - looks like a local syntax error in your code.
@sisve config/app.php am having
'App' => Illuminate \Support\Facades\App::class,
This issue is closed, and it's a issue in your code. At first glance it could be the space after Illuminate, there shouldn't be a space there. If that doesn't solve it, ask on Slack, Discord, Laracasts or other place meant for these type of questions.