public function __construct(Request $request, PermissionRepository $permissions)
 {
     parent::__construct($request);
     $this->data['titulo'] = 'Permissões';
     $this->repository = $permissions;
     $this->route = 'admin.permissions';
     $this->buscar_em = 'name';
 }
 public function __construct(Request $request)
 {
     parent::__construct($request);
     $this->data['titulo'] = 'Gerenciar Menus';
     // $this->repository = $categorias;
     $this->route = 'admin.menus';
     $this->buscar_em = 'nome';
 }
 public function __construct(Request $request, CategoriaRepository $categorias)
 {
     parent::__construct($request);
     $this->data['titulo'] = 'Categorias';
     $this->repository = $categorias;
     $this->route = 'admin.categorias';
     $this->buscar_em = 'nome';
 }
 public function __construct(Request $request, SiteRepository $site)
 {
     parent::__construct($request);
     $this->sites = $site;
     $this->data['titulo'] = 'Site';
     $this->repository = $site;
     $this->route = 'admin.sites';
     $this->buscar_em = 'nome';
 }
 public function __construct(Request $request, RoleRepository $roles, PermissionRepository $permission)
 {
     parent::__construct($request);
     $this->data['titulo'] = 'Papéis';
     $this->repository = $roles;
     $this->permission = $permission;
     $this->route = 'admin.roles';
     $this->buscar_em = 'name';
 }
 public function __construct(Request $request, UserRepository $users, UserService $service, RoleRepository $roles)
 {
     parent::__construct($request);
     $this->roles = $roles;
     $this->data['titulo'] = 'Usuários';
     $this->repository = $users;
     $this->route = 'admin.users';
     $this->buscar_em = 'name';
     $this->service = $service;
 }
 public function __construct(Request $request, PostService $service, PostRepository $posts, CategoriaRepository $categorias, SiteRepository $site)
 {
     parent::__construct($request);
     $this->data['titulo'] = 'Posts';
     $this->categorias = $categorias;
     $this->sites = $site;
     $this->repository = $posts;
     $this->service = $service;
     $this->route = 'admin.posts';
     $this->buscar_em = 'titulo';
 }
Esempio n. 8
0
 function __construct(UserRepo $userRepo)
 {
     parent::__construct('admin');
     $this->repo = $userRepo;
 }