path('app').'controllers/base.php', )); /* |-------------------------------------------------------------------------- | Auto-Loader Directories |-------------------------------------------------------------------------- | | The Laravel auto-loader can search directories for files using the PSR-0 | naming convention. This convention basically organizes classes by using | the class namespace to indicate the directory structure. | */ Autoloader::directories(array( path('app').'models', path('app').'libraries', )); /* |-------------------------------------------------------------------------- | Laravel View Loader |-------------------------------------------------------------------------- | | The Laravel view loader is responsible for returning the full file path | for the given bundle and view. Of course, a default implementation is | provided to load views according to typical Laravel conventions but | you may change this to customize how your views are organized. | */ Event::listen(View::loader, function($bundle, $view) { return View::file($bundle, $view, Bundle::path($bundle).'views'); }); /* |-------------------------------------------------------------------------- | Laravel Language Loader |-------------------------------------------------------------------------- | | The Laravel language loader is responsible for returning the array of | language lines for a given bundle, language, and "file". A default | implementation has been provided which uses the default language | directories included with Laravel. | */ 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 |-------------------------------------------------------------------------- | | We need to set the default timezone for the application. This controls | the timezone that will be used by any of the date methods and classes | utilized by Laravel or your application. The timezone may be set in | your application configuration file. | */ date_default_timezone_set(Config::get('application.timezone')); /* |-------------------------------------------------------------------------- | Start / Load The User Session |-------------------------------------------------------------------------- | | Sessions allow the web, which is stateless, to simulate state. In other | words, sessions allow you to store information about the current user | and state of your application. Here we'll just fire up the session | if a session driver has been configured. | */ if ( ! Request::cli() and Config::get('session.driver') !== '') { Session::load(); }