Devise\Media\Categories\ResponseHandler::requestStore PHP Method

requestStore() public method

Request a category be stored
public requestStore ( $input ) : mixed
$input
return mixed
    public function requestStore($input)
    {
        try {
            $this->CategoryManager->storeNewCategory($input);
        } catch (CategoryAlreadyExistsException $e) {
            \Session::flash('dvs-error-message', "The category {$input['name']} already exists!");
        }
        return $this->Redirect->back();
    }