vscode-blade-formatter icon indicating copy to clipboard operation
vscode-blade-formatter copied to clipboard

[Feature]: it don't format in migration

Open CHONNAT opened this issue 1 year ago • 0 comments

Description

Parse Error : syntax error, unexpected 'if' (T_IF) on line 14 12 | * @return void 13 | */

14 | if (!Schema::hasColumn('assets', 'capitalize_date')) { | ^ 15 | Schema::table('assets', function (Blueprint $table) { 16 | $table->date('capitalize_date')->nullable(); 17 | });

Suggested Solution

Parse Error : syntax error, unexpected 'if' (T_IF) on line 14 12 | * @return void 13 | */

14 | if (!Schema::hasColumn('assets', 'capitalize_date')) { | ^ 15 | Schema::table('assets', function (Blueprint $table) { 16 | $table->date('capitalize_date')->nullable(); 17 | });

Alternatives

No response

Additional Context

No response

CHONNAT avatar Jul 31 '24 15:07 CHONNAT