本文整理汇总了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;
}
示例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;
}
示例3: __construct
public function __construct(AccountRepository $accountRepo, Mailer $mailer, EmailService $emailService)
{
parent::__construct();
$this->accountRepo = $accountRepo;
$this->mailer = $mailer;
$this->emailService = $emailService;
}
示例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']);
}
示例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());
}
示例6: __construct
public function __construct(AccountRepository $accountRepo, ContactMailer $contactMailer, UserMailer $userMailer)
{
parent::__construct();
$this->accountRepo = $accountRepo;
$this->contactMailer = $contactMailer;
$this->userMailer = $userMailer;
}
示例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);
}
示例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;
}
示例9: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct();
$this->modelName = 'Sacramento';
$this->collectionName = 'sacramentos';
$this->folder = 'sacramentos';
}
示例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);
}
示例11: __construct
public function __construct(Mailer $mailer, InvoiceRepository $invoiceRepo, ClientRepository $clientRepo)
{
parent::__construct();
$this->mailer = $mailer;
$this->invoiceRepo = $invoiceRepo;
$this->clientRepo = $clientRepo;
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->page_attributes->page_title = 'Perusahaan';
$this->page_attributes->breadcrumb = [];
$this->middleware('password.needed', ['only' => ['destroy']]);
}
示例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 = [];
}
示例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);
}
示例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);
}