Components\Posts\Controllers\Backend\PostCategoriesController::store PHP Метод

store() публичный Метод

Store a newly created post in storage.
public store ( ) : Response
Результат Response
    public function store()
    {
        $input = Input::all();
        try {
            Category::create($input);
            return Redirect::to("backend/{$this->type}-categories")->with('success_message', trans('success_messages.post_cat_create'));
        } catch (ValidationException $e) {
            return Redirect::back()->withInput()->withErrors($e->getErrors());
        }
    }