Change view extension from .tpl to .blade.php
This commit is contained in:
parent
bffdb151ea
commit
4a2edb2291
2
.gitattributes
vendored
2
.gitattributes
vendored
|
|
@ -1,2 +0,0 @@
|
|||
* text=auto
|
||||
*.tpl linguist-language=php
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user