Framework: having an error in laravel (app.php)

Created on 5 Oct 2018  路  4Comments  路  Source: laravel/framework

  • Laravel Version: 5
  • PHP Version:7.1
  • Database Driver & Version:

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

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PhiloNL picture PhiloNL  路  3Comments

Fuzzyma picture Fuzzyma  路  3Comments

YannPl picture YannPl  路  3Comments

jackmu95 picture jackmu95  路  3Comments

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments