Components\ContactManager\Controllers\Backend\ContactCategoriesController::store PHP Method

store() public method

Store a newly created contact in storage.
public store ( ) : Response
return Response
    public function store()
    {
        $input = Input::all();
        try {
            ContactCategory::create($input);
            return Redirect::to("backend/contact-categories")->with('success_message', trans('success_messages.contact_cat_create'));
        } catch (ValidationException $e) {
            return Redirect::back()->withInput()->withErrors($e->getErrors());
        }
    }