Change view extension from .tpl to .blade.php

This commit is contained in:
printempw 2018-08-12 21:24:14 +08:00
parent bffdb151ea
commit 4a2edb2291
63 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

@ -23,6 +23,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');
// Control the URL generated by url() function
$this->configureUrlGenerator();