Devise\Pages\ApiPagesResponseHandler::requestCreateNewPage PHP Method

requestCreateNewPage() public method

Request a new page be created
public requestCreateNewPage ( array $input ) : Redirector
$input array
return Illuminate\Routing\Redirector
    public function requestCreateNewPage($input)
    {
        if (isset($input['response_class']) && isset($input['response_method'])) {
            $input['response_path'] = $input['response_class'] . '.' . $input['response_method'];
        }
        $page = $this->ApiPagesManager->createNewPage($input);
        if ($page) {
            return $this->Redirect->route('dvs-api');
        }
        return $this->Redirect->route('dvs-api-create')->withInput()->withErrors($this->ApiPagesManager->errors)->with('message', $this->ApiPagesManager->message);
    }