Inheritance: extends App\Http\Controllers\Controller
Ejemplo n.º 1
0
 public function __construct(UserRepositoryInterface $repo)
 {
     $this->repo = $repo;
     parent::__construct();
     $this->middleware('can:view.users', ['only' => 'getIndex']);
     $this->middleware('can:edit.users', ['only' => 'getEdit']);
 }
Ejemplo n.º 2
0
 public function __construct(User $model)
 {
     parent::__construct();
     $this->titleAction = 'User';
     $this->model = $model;
     $this->roles = Role::lists('name', 'id')->toArray();
 }
Ejemplo n.º 3
0
 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';
 }
Ejemplo n.º 4
0
 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';
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
 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";
 }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 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';
 }
Ejemplo n.º 11
0
 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";
 }
Ejemplo n.º 12
0
 public function __construct(Role $model)
 {
     parent::__construct();
     $this->titleAction = 'Role';
     $this->model = $model;
 }
Ejemplo n.º 13
0
 public function __construct()
 {
     parent::__construct();
     $this->middleware('can:view.settings', ['only' => 'getIndex']);
     $this->middleware('can:update.settings', ['only' => 'postIndex']);
 }
Ejemplo n.º 14
0
 public function __construct()
 {
     parent::__construct();
     $this->middleware('can:view.roles', ['only' => 'getIndex']);
     $this->middleware('can:edit.roles', ['only' => 'getEdit']);
 }