Skip to content

Commit 8f80b4a

Browse files
committed
move make-notion-model content to blade
- prototypical
1 parent 8dff823 commit 8f80b4a

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

src/Console/Commands/MakeNotionModel.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,7 @@ public function handle()
6464
}
6565

6666
$contents = "<?php
67-
namespace App\NotionModels;
6867
69-
use FiveamCode\LaravelNotionApi\Models\NotionModel;
70-
71-
/**
72-
{$phpDocsProperties}*/
73-
class {$databaseName} extends NotionModel
74-
{
75-
public static \$databaseId = '{$databaseId}';
76-
77-
public static \$cacheDurationInSeconds = 0;
78-
79-
public static \$convertPropsToText = false;
80-
81-
public static \$visible = [
82-
$visibleArray ];
83-
84-
public static \$propertyTypeMap = [
85-
$propertyTypeMape ];
86-
87-
public static \$propertyTitleMap = [
88-
$propertyTitleMap ];
89-
90-
}
9168
9269
";
9370
File::ensureDirectoryExists('app/NotionModels');
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace App\NotionModels;
2+
3+
use FiveamCode\LaravelNotionApi\Models\NotionModel;
4+
5+
/**
6+
{{$phpDocsProperties}}*/
7+
class {{$databaseName}} extends NotionModel
8+
{
9+
public static $databaseId = '{{$databaseId}}';
10+
11+
public static $cacheDurationInSeconds = 0;
12+
13+
public static $convertPropsToText = false;
14+
15+
public static $visible = [
16+
{{$visibleArray}} ];
17+
18+
public static $propertyTypeMap = [
19+
{{$propertyTypeMape}} ];
20+
21+
public static $propertyTitleMap = [
22+
{{$propertyTitleMap}} ];
23+
24+
}

0 commit comments

Comments
 (0)