title: Laravel Delete a Cookie
body: <p>When the user press the reset button on the filter, I want to delete the cookie that I previously created to save the user inputs and redirect to the same page "/search/influencers". I have searched all over stackoverflow and none of the listed ways to delete the cookie works. Please help! </p>
  
  <pre><code>/**
       * resets the cookie that holds previous filter query
       */
      public function resetFilter(Request $request){
          if(Cookie::has('if_query_pref')) {
              Cookie::queue(
                  Cookie::forget('if_query_pref')
              );
          }
  
  
  
          return redirect()-&gt;route('influencerSearch'); //change the expiration time
      }
  </code></pre>