null, //default /* |-------------------------------------------------------------------------- | Listener from events |-------------------------------------------------------------------------- | | You can hook a theme when event fired on activities | this is cool feature to set up a title, meta, default styles and scripts. | | [Notice] these event can be override by package config. | */ 'events' => array( // Before event inherit from package config and the theme that call before, // you can use this event to set meta, breadcrumb template or anything // you want inheriting. 'before' => function($theme) { // You can remove this line anytime. $theme->setTitle('Copyright © 2013 - Laravel.in.th'); // Breadcrumb template. // $theme->breadcrumb()->setTemplate(' // // '); }, // Listen on event before render a theme, // this event should call to assign some assets, // breadcrumb template. 'beforeRenderTheme' => function($theme) { // You may use this event to set up your assets. // $theme->asset()->usePath()->add('core', 'core.js'); // $theme->asset()->add('jquery', 'vendor/jquery/jquery.min.js'); // $theme->asset()->add('jquery-ui', 'vendor/jqueryui/jquery-ui.min.js', array('jquery')); // Partial composer. // $theme->partialComposer('header', function($view) // { // $view->with('auth', Auth::user()); // }); }, // Listen on event before render a layout, // this should call to assign style, script for a layout. 'beforeRenderLayout' => array( 'default' => function($theme) { // $theme->asset()->usePath()->add('ipad', 'css/layouts/ipad.css'); } ) ) );