@@ -23,7 +23,7 @@ public function output(Tree $tree): array
23
23
{
24
24
$ output = [];
25
25
26
- $ stub = $ this ->files ->stub ('model/ class.stub ' );
26
+ $ stub = $ this ->files ->stub ('model. class.stub ' );
27
27
28
28
/** @var \Blueprint\Models\Model $model */
29
29
foreach ($ tree ->models () as $ model ) {
@@ -99,33 +99,33 @@ protected function buildProperties(Model $model)
99
99
$ properties = '' ;
100
100
101
101
if (! $ model ->usesTimestamps ()) {
102
- $ properties .= $ this ->files ->stub ('model/ timestamps.stub ' );
102
+ $ properties .= $ this ->files ->stub ('model. timestamps.stub ' );
103
103
}
104
104
105
105
if (config ('blueprint.use_guarded ' )) {
106
- $ properties .= $ this ->files ->stub ('model/ guarded.stub ' );
106
+ $ properties .= $ this ->files ->stub ('model. guarded.stub ' );
107
107
} else {
108
108
$ columns = $ this ->fillableColumns ($ model ->columns ());
109
109
if (! empty ($ columns )) {
110
- $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns , false ), $ this ->files ->stub ('model/ fillable.stub ' ));
110
+ $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns , false ), $ this ->files ->stub ('model. fillable.stub ' ));
111
111
} else {
112
- $ properties .= $ this ->files ->stub ('model/ fillable.stub ' );
112
+ $ properties .= $ this ->files ->stub ('model. fillable.stub ' );
113
113
}
114
114
}
115
115
116
116
$ columns = $ this ->hiddenColumns ($ model ->columns ());
117
117
if (! empty ($ columns )) {
118
- $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns , false ), $ this ->files ->stub ('model/ hidden.stub ' ));
118
+ $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns , false ), $ this ->files ->stub ('model. hidden.stub ' ));
119
119
}
120
120
121
121
$ columns = $ this ->castableColumns ($ model ->columns ());
122
122
if (! empty ($ columns )) {
123
- $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns ), $ this ->files ->stub ('model/ casts.stub ' ));
123
+ $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns ), $ this ->files ->stub ('model. casts.stub ' ));
124
124
}
125
125
126
126
$ columns = $ this ->dateColumns ($ model ->columns ());
127
127
if (! empty ($ columns )) {
128
- $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns , false ), $ this ->files ->stub ('model/ dates.stub ' ));
128
+ $ properties .= PHP_EOL .str_replace ('[] ' , $ this ->pretty_print_array ($ columns , false ), $ this ->files ->stub ('model. dates.stub ' ));
129
129
}
130
130
131
131
return trim ($ properties );
@@ -134,11 +134,11 @@ protected function buildProperties(Model $model)
134
134
protected function buildRelationships (Model $ model )
135
135
{
136
136
$ methods = '' ;
137
- $ template = $ this ->files ->stub ('model/ method.stub ' );
137
+ $ template = $ this ->files ->stub ('model. method.stub ' );
138
138
$ commentTemplate = '' ;
139
139
140
140
if (config ('blueprint.generate_phpdocs ' )) {
141
- $ commentTemplate = $ this ->files ->stub ('model/ method- comment.stub ' );
141
+ $ commentTemplate = $ this ->files ->stub ('model. method. comment.stub ' );
142
142
}
143
143
144
144
foreach ($ model ->relationships () as $ type => $ references ) {
0 commit comments