コード例 #1
0
 public function __construct(User $users)
 {
     $this->users = $users;
     // So that the base controller we created gets the middleware
     // applied
     parent::__construct();
 }
コード例 #2
0
 public function __construct(Page $pages)
 {
     $this->pages = $pages;
     parent::__construct();
 }