Skip to content

Commit

Permalink
Fix issue with nested arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Jan 22, 2024
1 parent d423d95 commit 7c082cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BladeDirectives.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function formSection(string $expression): string
*/
public static function formField(string $expression): string
{
$variables = explode(', ', $expression);
$variables = explode(', ', $expression, 2);

$field = $variables[0];
$properties = $variables[1] ?? '[]';
Expand Down

0 comments on commit 7c082cc

Please sign in to comment.