public function __construct(UserRepositoryInterface $repo) { $this->repo = $repo; parent::__construct(); $this->middleware('can:view.users', ['only' => 'getIndex']); $this->middleware('can:edit.users', ['only' => 'getEdit']); }
public function __construct(User $model) { parent::__construct(); $this->titleAction = 'User'; $this->model = $model; $this->roles = Role::lists('name', 'id')->toArray(); }
public function __construct(\App\TourOption $model) { parent::__construct(); $this->model = $model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->layout->content_title = 'TOUR OPTION'; }
public function __construct(User $model) { parent::__construct(); $this->model = $model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->layout->content_title = 'ADMIN'; }
public function __construct(\App\Destination $model) { parent::__construct(); $this->model = $model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->required_images = ['SmallThumbnail' => 'Small Thumbnail (360x270)', 'LargeThumbnail' => 'Large Thumbnail (600x400)']; $this->layout->content_title = strtoupper($this->view_name); }
public function __construct(\App\Place $model) { parent::__construct(); $this->model = $model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->required_images = ['Gallery1' => 'Gallery 1 (1000x500)', 'Gallery2' => 'Gallery 2 (1000x500)', 'Gallery3' => 'Gallery 3 (1000x500)', 'Gallery4' => 'Gallery 4 (1000x500)', 'Gallery5' => 'Gallery 5 (1000x500)', 'SmallImage' => 'Small Image (360x270)', 'LargeImage' => 'Large Image (600x400)']; $this->layout->content_title = strtoupper($this->view_name); }
function __construct() { parent::__construct(); $this->model = $model; $this->user_model = $user_model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->layout->content_title = strtoupper($this->view_name); }
public function __construct(\App\TravelAgent $model) { parent::__construct(); $this->model = $model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->required_images = ['SmallLogo' => 'Small Logo (200x150) - transparent background', 'LargeLogo' => 'Large Logo (400x300) - transparent background']; $this->layout->content_title = "Travel Agents"; }
public function __construct(\App\Article $model, \App\User $user_model) { parent::__construct(); $this->model = $model; $this->user_model = $user_model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->required_images = ['SmallImage' => 'Small Image (400x300)', 'LargeImage' => 'Large Image (800x600)']; $this->layout->content_title = strtoupper($this->view_name); }
public function __construct(\App\Headline $model) { parent::__construct(); $this->model = $model; $this->user_model = $user_model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; $this->required_images = ['SmallImage' => 'Small Image', 'MediumImage' => 'Medium Image', 'LargeImage' => 'Large Image']; $this->layout->content_title = 'Homepage Headlines'; }
public function __construct(\App\Headline $headline_model, \App\Setting $setting_model) { parent::__construct(); $this->headline_model = $headline_model; $this->setting_model = $setting_model; $this->layout->view_name = $this->view_name; $this->layout->route_name = $this->route_name; $this->page_base_dir .= $this->view_name . '.'; // HOMEGRID INIT foreach (HomegridSetting::getType() as $x) { $this->homegrid_types[$x] = ucwords(str_replace('_', ' ', $x)); } $this->layout->content_title = "HOMEPAGE"; }
public function __construct(Role $model) { parent::__construct(); $this->titleAction = 'Role'; $this->model = $model; }
public function __construct() { parent::__construct(); $this->middleware('can:view.settings', ['only' => 'getIndex']); $this->middleware('can:update.settings', ['only' => 'postIndex']); }
public function __construct() { parent::__construct(); $this->middleware('can:view.roles', ['only' => 'getIndex']); $this->middleware('can:edit.roles', ['only' => 'getEdit']); }