original_string: public function store(CategoriesRequest $request)
      {
          $category = Category::create(
              $request->all()
          );
  
          return redirect()->route('categories.edit', $category)->with(
              'status', trans('globals.success_text')
          );
      }
code: public function store(CategoriesRequest $request)
      {
          $category = Category::create(
              $request->all()
          );
  
          return redirect()->route('categories.edit', $category)->with(
              'status', trans('globals.success_text')
          );
      }
code_tokens: public function store ( CategoriesRequest $ request ) { $ category = Category :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'categories.edit' , $ category ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
docstring: Stores a new category.
  
  @param  CategoriesRequest $request
  
  @return void
docstring_tokens: Stores a new category .