コード例 #1
0
ファイル: UsersController.php プロジェクト: ryzr/bootlegcms
 public function __construct(User $user)
 {
     parent::__construct();
     $this->user = $user;
     $this->beforeFilter('csrf', array('on' => 'post'));
     //add in some standard dash items..
     \Event::listen('dashboard.items', function () {
         $user = User::find(\Auth::user()->id);
         return $this->render('users.dash_item', array('user' => $user));
     });
     //TODO: move this into applications
     \Event::listen('dashboard.items', function () {
         return $this->render('application.dash_item', array('application' => $this->application));
     });
 }
コード例 #2
0
 public function __construct($content)
 {
     parent::__construct();
     view()->share('content_mode', $this->content_mode);
     $this->content = $content;
 }