Пример #1
0
 /**
  * Display all
  * @return Response
  */
 public function getAll(Request $request)
 {
     $withHtmlRenderLink = (bool) $request->input('renderContent', FALSE);
     $data = parent::getAll($request);
     if (!$withHtmlRenderLink) {
         return $data;
     }
     foreach ($data as $item) {
         $item->enterMode('render-content-to-html');
     }
     return $data;
 }
 /**
  * ProfileController constructor.
  * @param UserService $userService
  */
 public function __construct(UserService $userService)
 {
     $this->userService = $userService;
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
 }
 /**
  * ItemsController constructor.
  *
  * @param ItemsService $itemsService
  */
 public function __construct(ItemsService $itemsService)
 {
     $this->itemsService = $itemsService;
     parent::__construct();
 }
 public function __construct(JWTAuth $jwtAuth)
 {
     $this->jwtAuth = $jwtAuth;
     parent::__construct();
 }
 /**
  * CategoryController constructor.
  * @param CategoriesService $categoriesService
  */
 public function __construct(CategoriesService $categoriesService)
 {
     $this->categoriesService = $categoriesService;
     parent::__construct();
 }