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'));
	}
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'));
	}
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' ) ) ; }
Stores a new product.

@param  ProductsRequest $request

@return void
Stores a new product .