app/Http/Controllers/ProductController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $this->validate($request,[
            'p_name' => 'required',
            'p_price' => 'required',
            'cathegory' => 'required',
            'p_image' => 'required'
        ]);
        return route('admin.product_list')->with('success', 'Product Created');
    }
public function update ( Request $ request , $ id ) { $ this -> validate ( $ request , [ 'p_name' => 'required' , 'p_price' => 'required' , 'cathegory' => 'required' , 'p_image' => 'required' ] ) ; return route ( 'admin.product_list' ) -> with ( 'success' , 'Product Created' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//insert update content