當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。