public function store()
    {
        $attributes = request()->validate(DocumentCategory::$rules, DocumentCategory::$messages);

        $category = $this->createEntry(DocumentCategory::class, $attributes);

        return redirect_to_resource();
    }
public function store()
    {
        $attributes = request()->validate(DocumentCategory::$rules, DocumentCategory::$messages);

        $category = $this->createEntry(DocumentCategory::class, $attributes);

        return redirect_to_resource();
    }
public function store ( ) { $ attributes = request ( ) -> validate ( DocumentCategory :: $ rules , DocumentCategory :: $ messages ) ; $ category = $ this -> createEntry ( DocumentCategory :: class , $ attributes ) ; return redirect_to_resource ( ) ; }
Store a newly created document_category in storage.

@return Response
Store a newly created document_category in storage .