diff --git a/src/Console/Commands/DataTypeBreadCommand.php b/src/Console/Commands/DataTypeBreadCommand.php index 3abf306..bef47e0 100644 --- a/src/Console/Commands/DataTypeBreadCommand.php +++ b/src/Console/Commands/DataTypeBreadCommand.php @@ -102,8 +102,8 @@ protected function replaceAttributes($stub, DataType $dataType): string $this->nullify($dataType->description), $this->nullify($dataType->generate_permissions), $this->nullify($dataType->server_side), - $dataType->details, - ], + json_encode($dataType->details), + ], $stub ); }