title: how to change the value of a column in laravel on logout
body: <p>i have a column called active_user to show when a user is online(1). When i log a user in i set the active_user column to 1  but when i log the user out and check  active_user it still shows online(1). what i want is that when i click the logout button the aactive_user column will change to offline(0) and also update it to the database. my login is below.</p>
  
  <pre><code> public function postSignIn(Request $request) {
  
      $this-&gt;validate($request, [
  
          'email' =&gt; 'required',
          'password' =&gt; 'required'
  
      ]);
  
     if(Auth::attempt(['email' =&gt; $request['email'], 'password' =&gt; $request['password']])) {
         $user=User::whereRaw('email=?',[Input::get('email')])-&gt;first();
  
         //this is where i set the active_user to 1
         $user-&gt;active_user=1;
         $user-&gt;save();
  
         if($user!=null){
             switch($user-&gt;role_id){
                 case 1:
                     if($user-&gt;status==0){
                         session()-&gt;flash('flash_message_error', ' Your Account has been  deactivated. Contact the administrator');
                         return Redirect::to('admin/login');
                     }
                     return redirect()-&gt;route("index");
                 break; 
  </code></pre>
  
  <p>then below is my logout function</p>
  
  <pre><code>public function LogOut($id) {
      $user = User::find($id);
      $user-&gt;active_user=1;
      $user-&gt;save();
      Auth::logout();
  
      return redirect('admin/login');
  }
  </code></pre>
  
  <p>in the logout function i want to change the active_user back to offline(0) but i keep getting an error "Missing argument 1 for App\Http\Controllers\AdminController::LogOut()"</p>