'List Company Wallet', 'message' => 'You have successfully list company wallet' ]; } /** @var ListsWallets */ private $listsWallets; /** @var CanCreateCompanyWallet */ private $canListWallet; /** * CreateWalletLogic constructor. * @param CreatesWallet $createsWallet * @param GeneratesWalletCode $generatesWalletCode * @param CanCreateCompanyWallet $canCreateCompanyWallet */ public function __construct(CanListWallet $canListWallet, ListsWallets $listsWallets) { $this->canListWallet = $canListWallet; $this->listsWallets = $listsWallets; } /** * @param Request $request * @return JsonResponse * @throws ErrorException */ public function logic(Request $request) : JsonResponse { //$this->canListWallet->passes(); $query = $this->listsWallets->execute($this->listsWallets->deserializeFilters($request->input('filters'))); return $this->collectionResponse(WalletResource::collection($query)); } }