App\Http\Controllers\PaymentController::bulk PHP Method

bulk() public method

public bulk ( ) : mixed
return mixed
    public function bulk()
    {
        $action = Input::get('action');
        $amount = Input::get('amount');
        $ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids');
        $count = $this->paymentService->bulk($ids, $action, ['amount' => $amount]);
        if ($count > 0) {
            $message = Utils::pluralize($action == 'refund' ? 'refunded_payment' : $action . 'd_payment', $count);
            Session::flash('message', $message);
        }
        return redirect()->to('payments');
    }