Change view extension from .tpl to .blade.php

This commit is contained in:
Pig Fang 2018-08-19 11:53:24 +08:00
parent 6b4812b251
commit 32104da31f
58 changed files with 2 additions and 2 deletions

2
.gitattributes vendored
View File

@ -1,2 +0,0 @@
* text=auto
*.tpl linguist-language=php

View File

@ -63,6 +63,8 @@ class AppServiceProvider extends ServiceProvider
// Support *.tpl extension name
View::addExtension('tpl', 'blade');
// Make the priority of *.blade.php higher than *.tpl
View::addExtension('blade.php', 'blade');
}
/**