File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,10 @@ public function classContents()
122
122
}
123
123
124
124
if ($ this ->viewPath ) {
125
- $ viewPath = Str::after ($ this ->viewPath , 'resources/views/ ' );
126
125
$ contents = Str::replaceLast ("} \n" , "
127
126
public function rowView(): string
128
127
{
129
- return ' " . $ viewPath . "';
128
+ return ' " . $ this -> getViewPathForRowView () . "';
130
129
}
131
130
} \n" ,
132
131
$ contents );
@@ -135,6 +134,11 @@ public function rowView(): string
135
134
return $ contents ;
136
135
}
137
136
137
+ private function getViewPathForRowView (): string
138
+ {
139
+ return Str::before (Str::after ($ this ->viewPath , 'resources/views/ ' ), '.blade.php ' );
140
+ }
141
+
138
142
public function viewContents ()
139
143
{
140
144
return file_get_contents (__DIR__ .DIRECTORY_SEPARATOR .'view.stub ' );
You can’t perform that action at this time.
0 commit comments