File tree 2 files changed +12
-14
lines changed
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -174,19 +174,17 @@ public function getFilePath($fileName = null)
174
174
$ component = $ this ->component ;
175
175
$ componentPath = $ component ->getPath ();
176
176
177
- foreach (['.blade. ' , '. ' ] as $ part ) {
178
- $ basename = $ fileName ;
179
- if (!strlen (File::extension ($ basename )))
180
- $ basename .= $ part .$ this ->defaultExtension ;
181
-
182
- if (File::isFile ($ path = $ componentPath .'/ ' .$ basename ))
183
- return $ path ;
184
-
185
- // Check the shared "/partials" directory for the partial
186
- $ sharedPath = dirname ($ componentPath ).'/partials/ ' .$ basename ;
187
- if (File::isFile ($ sharedPath )) {
188
- return $ sharedPath ;
189
- }
177
+ $ basename = $ fileName ;
178
+ if (!strlen (File::extension ($ basename )))
179
+ $ basename .= '.blade. ' .$ this ->defaultExtension ;
180
+
181
+ if (File::isFile ($ path = $ componentPath .'/ ' .$ basename ))
182
+ return $ path ;
183
+
184
+ // Check the shared "/partials" directory for the partial
185
+ $ sharedPath = dirname ($ componentPath ).'/partials/ ' .$ basename ;
186
+ if (File::isFile ($ sharedPath )) {
187
+ return $ sharedPath ;
190
188
}
191
189
192
190
return $ componentPath .'/ ' .$ fileName ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ trait ViewMaker
45
45
*/
46
46
public $ suppressLayout = FALSE ;
47
47
48
- protected $ viewFileExtension = ['.blade.php ' , ' .php ' ];
48
+ protected $ viewFileExtension = ['.blade.php ' ];
49
49
50
50
public function getViewPath ($ view , $ viewPath = null )
51
51
{
You can’t perform that action at this time.
0 commit comments