Reintegrating Blade with Laravel using View engine event.
This commit is contained in:
@@ -119,6 +119,7 @@ return array(
|
||||
'Auth' => 'Laravel\\Auth',
|
||||
'Asset' => 'Laravel\\Asset',
|
||||
'Autoloader' => 'Laravel\\Autoloader',
|
||||
'Blade' => 'Laravel\\Blade',
|
||||
'Bundle' => 'Laravel\\Bundle',
|
||||
'Cache' => 'Laravel\\Cache',
|
||||
'Config' => 'Laravel\\Config',
|
||||
|
||||
@@ -112,6 +112,19 @@ Event::listen(Lang::loader, function($bundle, $language, $file)
|
||||
return Lang::file($bundle, $language, $file);
|
||||
});
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable The Blade View Engine
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The Blade view engine provides a clean, beautiful templating language
|
||||
| for your application, including syntax for echoing data and all of
|
||||
| the typical PHP control structures. We'll simply enable it here.
|
||||
|
|
||||
*/
|
||||
|
||||
Blade::sharpen();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Set The Default Timezone
|
||||
|
||||
Reference in New Issue
Block a user