Skip to content

Commit 0e9ad19

Browse files
committed
Add support for toggle when relations are included
1 parent 8cf6254 commit 0e9ad19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/TypeScriptifyModelCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TypeScriptifyModelCommand extends Command {
1414
*/
1515
protected $signature = 'typescriptify:model
1616
{model : The fully qualified class name for the model - e.g. App\Models\User}
17-
{--includeHidden : Include the protected $hidden properties}
17+
{--includeHidden=false : Include the protected $hidden properties}
1818
{--includeRelations=true : Map foreign key columns to interface definitions}';
1919

2020
/**

src/TypeScriptifyModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class TypeScriptifyModel {
5454
*
5555
* @var bool
5656
*/
57-
private bool $includeRelations = true;
57+
private bool $includeRelations = false;
5858

5959
/**
6060
* @param string $fullyQualifiedModelName The fully qualified model class name.

0 commit comments

Comments
 (0)