original_string: public function store(ProductsRequest $request)
  	{
  		$product = $this->products->create(
  			$request->all()
  		);
  
  		return redirect()->route('items.edit', [
  			'item' => $product->id
  		])->with('status', trans('globals.success_text'));
  	}
code: public function store(ProductsRequest $request)
  	{
  		$product = $this->products->create(
  			$request->all()
  		);
  
  		return redirect()->route('items.edit', [
  			'item' => $product->id
  		])->with('status', trans('globals.success_text'));
  	}
code_tokens: public function store ( ProductsRequest $ request ) { $ product = $ this -> products -> create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'items.edit' , [ 'item' => $ product -> id ] ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
docstring: Stores a new product.
  
  @param  ProductsRequest $request
  
  @return void
docstring_tokens: Stores a new product .