当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseController::__construct方法代码示例

本文整理汇总了PHP中App\Http\Controllers\BaseController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseController::__construct方法的具体用法?PHP BaseController::__construct怎么用?PHP BaseController::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在App\Http\Controllers\BaseController的用法示例。


在下文中一共展示了BaseController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct(TaskRepository $taskRepo, InvoiceRepository $invoiceRepo, TaskService $taskService)
 {
     parent::__construct();
     $this->taskRepo = $taskRepo;
     $this->invoiceRepo = $invoiceRepo;
     $this->taskService = $taskService;
 }
开发者ID:madonion,项目名称:facturi,代码行数:7,代码来源:TaskController.php

示例2: __construct

 /**
  * Create a new BrowseController instance.
  *
  * @param \App\Repositories\CategoryRepositoryInterface $categories
  * @param \App\Repositories\TagRepositoryInterface      $tags
  * @param \App\Repositories\TrickRepositoryInterface    $tricks
  */
 public function __construct(CategoryRepositoryInterface $categories, TagRepositoryInterface $tags, TrickRepositoryInterface $tricks)
 {
     parent::__construct();
     $this->categories = $categories;
     $this->tags = $tags;
     $this->tricks = $tricks;
 }
开发者ID:wmk223,项目名称:site,代码行数:14,代码来源:BrowseController.php

示例3: __construct

 public function __construct(AccountRepository $accountRepo, Mailer $mailer, EmailService $emailService)
 {
     parent::__construct();
     $this->accountRepo = $accountRepo;
     $this->mailer = $mailer;
     $this->emailService = $emailService;
 }
开发者ID:nafrente,项目名称:invoice-ninja,代码行数:7,代码来源:AppController.php

示例4: __construct

 public function __construct(Model $model, $base = 'jabatan')
 {
     parent::__construct($model, $base);
     view()->share('breadcrumb2Icon', 'tag');
     view()->share('fields', ['id' => 'ID', 'jabatan' => 'Jabatan', 'status' => 'Status']);
     view()->share('unsortables', ['status']);
 }
开发者ID:mrofi,项目名称:liveSKP,代码行数:7,代码来源:JabatanController.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setModel(new \App\Activity());
     $this->setTransformer(new \App\Transformers\ActivityTransformer());
     $this->setRequestValidator(new \App\Http\Requests\ActivityRequest());
 }
开发者ID:simmatrix,项目名称:MMUCRS,代码行数:7,代码来源:ActivityController.php

示例6: __construct

 public function __construct(AccountRepository $accountRepo, ContactMailer $contactMailer, UserMailer $userMailer)
 {
     parent::__construct();
     $this->accountRepo = $accountRepo;
     $this->contactMailer = $contactMailer;
     $this->userMailer = $userMailer;
 }
开发者ID:GhDj,项目名称:erp-fac-fin,代码行数:7,代码来源:UserController.php

示例7: __construct

 /**
  * Create a new authentication controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest', ['except' => 'getLogout']);
     $popup = Popup::where('status', 1)->first();
     view()->share('popup', $popup);
 }
开发者ID:louisthaihv,项目名称:colong,代码行数:12,代码来源:AuthController.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     //redis db selection - please note this is to be changed for different states when it is applied
     //for now we are only considering CA state code so redis db = 5 as static
     $this->redisDb = 6;
 }
开发者ID:saran-github,项目名称:repos,代码行数:7,代码来源:OverviewController.php

示例9: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->modelName = 'Sacramento';
     $this->collectionName = 'sacramentos';
     $this->folder = 'sacramentos';
 }
开发者ID:reysmerwvr,项目名称:jenion,代码行数:10,代码来源:SacramentosController.php

示例10: __construct

 public function __construct(Model $model, $base = 'profile')
 {
     parent::__construct($model, $base);
     view()->share('breadcrumb2Icon', 'image');
     view()->share('noAddButton', true);
     view()->share('withoutMenu', true);
 }
开发者ID:mrofi,项目名称:liveSKP,代码行数:7,代码来源:ProfileController.php

示例11: __construct

 public function __construct(Mailer $mailer, InvoiceRepository $invoiceRepo, ClientRepository $clientRepo)
 {
     parent::__construct();
     $this->mailer = $mailer;
     $this->invoiceRepo = $invoiceRepo;
     $this->clientRepo = $clientRepo;
 }
开发者ID:unedeplus,项目名称:invoice-ninja,代码行数:7,代码来源:InvoiceController.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->page_attributes->page_title = 'Perusahaan';
     $this->page_attributes->breadcrumb = [];
     $this->middleware('password.needed', ['only' => ['destroy']]);
 }
开发者ID:ThunderID,项目名称:HRIS-V.2,代码行数:7,代码来源:OrgController.php

示例13:

 function __construct()
 {
     parent::__construct();
     Session::set('API_token', Session::get('API_token_public'));
     $this->page_attributes->title = 'BALIN.ID';
     $this->page_attributes->source = 'web_v2.pages.info.';
     $this->page_attributes->breadcrumb = [];
 }
开发者ID:ThunderID,项目名称:BALIN-2.0,代码行数:8,代码来源:InfoController.php

示例14: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->dishes = User::find(Auth::id())->dishes->lists('name', 'id')->toArray();
     $this->ingredients = User::find(Auth::id())->ingredients->lists('name', 'id')->toArray();
     \View::share('dishes', $this->dishes);
     \View::share('ingredients', $this->ingredients);
 }
开发者ID:jrafaelca,项目名称:kitchen_manager,代码行数:11,代码来源:DishIngredientsController.php

示例15: __construct

 public function __construct(UserAuthentication $userAuth, Dispatcher $dispatcher)
 {
     $this->userAuth = $userAuth;
     $this->middleware('guest', ['only' => ['registerAjax', 'loginAjax']]);
     $this->domain = 'Main Domain';
     $this->ajaxAuth = true;
     parent::__construct($dispatcher);
 }
开发者ID:wyrover,项目名称:laravel-self-consuming-api-starter,代码行数:8,代码来源:AuthenticationController.php


注:本文中的App\Http\Controllers\BaseController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。