title: How to execute certain function after some time?
body: <p>I have this function where user can reject other user.</p>
  
  <pre><code> public function rejectPersonalUser($id){
          $user = PersonalUser::findOrFail($id);
          $user-&gt;approved = 0;
          $user-&gt;business_user_id = NULL;
          $user-&gt;save();
  
          return redirect()-&gt;back()-&gt;withFlashMessage('User has been rejected successfully!!');
     }
  </code></pre>
  
  <p>Now what i want is to check if user reject other user after 7 days if its not to call other function.</p>
  
  <pre><code>   public function setUser($id){
      $user = PersonalUser::findOrFail($id);
       if($user-&gt;approved == 0 &amp;&amp; $user-&gt;business_user_id != NULL){
          $user-&gt;approved = 0;
          $user-&gt;business_user_id = NULL;
          $user-&gt;save();
      }
   }
  </code></pre>