app/Http/Controllers/OrdersController.php
/**
     * Cancel order by forgetting session
     *
     * @return \Illuminate\Http\Response
     */
Cancel order by forgetting session
@return \Illuminate\Http\Response
Cancel order by forgetting session @return \ Illuminate \ Http \ Response
public function cancel(){
        if(auth()->user()->isClient()){
            session()->forget('current_order');
            return redirect('/');
        }
    }
public function cancel ( ) { if ( auth ( ) -> user ( ) -> isClient ( ) ) { session ( ) -> forget ( 'current_order' ) ; return redirect ( '/' ) ; } }
Cancel order by forgetting session
 @return \Illuminate\Http\Response
Cancel order by forgetting session @return \ Illuminate \ Http \ Response