コード例 #1
0
 /**
  * Register the application services.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->app->singleton('form', function ($app) {
         $form = new Macros($app['html'], $app['url'], $app['view'], $app['session.store']->getToken());
         return $form->setSessionStore($app['session.store']);
     });
 }
コード例 #2
0
 /**
  * 
  *
  * @param $name
  * @param null $selected
  * @param array $options
  * @return mixed 
  * @static 
  */
 public static function selectTimezone($name, $selected = null, $options = array())
 {
     return \App\Services\Macros\Macros::selectTimezone($name, $selected, $options);
 }