vscode-blade-formatter
vscode-blade-formatter copied to clipboard
[Feature]: it don't format in migration
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