app/Http/Controllers/PhieuNhapHangController.php
/**
     * Remove the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Remove the specified resource in storage.
Remove the specified resource in storage .
public function removePnh(Request $request)
    {
        if($request->id) {
            $pnh = session()->get('pnh');
            if(isset($pnh[$request->id])) {
                unset($pnh[$request->id]);
                session()->put('pnh', $pnh);
            }
            session()->flash('success', 'Đã xóa sản phẩm');
        }
    }
public function removePnh ( Request $ request ) { if ( $ request -> id ) { $ pnh = session ( ) -> get ( 'pnh' ) ; if ( isset ( $ pnh [ $ request -> id ] ) ) { unset ( $ pnh [ $ request -> id ] ) ; session ( ) -> put ( 'pnh' , $ pnh ) ; } session ( ) -> flash ( 'success' , 'Đã xóa sản phẩm'); } }
Remove the specified resource in storage.
Remove the specified resource in storage .