protected function renderSuccessPage(array $data, ?string $view = null) : View
    {
        return $this->view->make($view ?? 'state.success')->with($data);
    }
protected function renderSuccessPage(array $data, ?string $view = null) : View
    {
        return $this->view->make($view ?? 'state.success')->with($data);
    }
protected function renderSuccessPage ( array $ data , ? string $ view = null ) : View { return $ this -> view -> make ( $ view ?? 'state.success' ) -> with ( $ data ) ; }
Render success page

@param array       $data
@param null|string $view
@return \Illuminate\Contracts\View\View
Render success page