Laravel 5.1: Auth::logout() is not working and Target [Illuminate\Contracts\Auth\Registrar] is not instantiable error
<p>I'm new in laravel and I try to build a simple Authentication. all the things works fine except when using AuthController's action to log out, it just simply doesn't work. I have a nav bar which checks for Auth::check() and it doesn't change after calling the log out action and it stocks in home page. but after making few changes like deleting this manual logout code:</p>

<pre><code>public function logout()
    {
        Auth::logout();
        Session::flush();
        return redirect()-&gt;intended('login');
    }
</code></pre>

<p>and changing the rout from this:</p>

<pre><code>Route::get('logout', 'SessionsController@logout');
</code></pre>

<p>to this:</p>

<pre><code>Route::get('auth/logout', 'Auth\AuthController@logout');
</code></pre>

<p>it throws this error:</p>

<pre><code>BindingResolutionException in Container.php line 749: Target [Illuminate\Contracts\Auth\Registrar] is not instantiable. 
</code></pre>

<p>I have this route inside the routes.php file: </p>

<pre><code>Route::get('auth/logout', 'Auth\AuthController@logout');
</code></pre>

<p>and my AuthController is the controller that laravel providing us.</p>

<p>my SessionsController that handled logout before the changes but actually not work either is:</p>

<pre><code>&lt;?php namespace App\Http\Controllers;

use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class SessionsController extends Controller
{
    /**
     * Create a new sessions controller instance.
     */
    public function __construct()
    {
        $this-&gt;middleware('guest');
    }

    /**
     * Show the login page.
     *
     * @return \Response
     */
    public function login()
    {
        return view('auth.login');
    }

    /**
     * Perform the login.
     *
     * @param  Request  $request
     * @return \Redirect
     */
    public function postLogin(Request $request)
    {
        $this-&gt;validate($request, ['username' =&gt; 'required|exists:users', 'password' =&gt; 'required']);

        if ($this-&gt;signIn($request)) {
            flash('Welcome back!');

            return redirect()-&gt;intended('dashboard');

        }

        flash('Could not sign you in.');

        return redirect()-&gt;back();
    }

    /**
     * Destroy the user's current session.
     *
     * @return \Redirect
     */
    public function logout()
    {
        Auth::logout();
        Session::flush();
        return redirect()-&gt;intended('login');
    }

    /**
     * Attempt to sign in the user.
     *
     * @param  Request $request
     * @return boolean
     */
    protected function signIn(Request $request)
    {
        return Auth::attempt($this-&gt;getCredentials($request), $request-&gt;has('remember'));
    }

    /**
     * Get the login credentials and requirements.
     *
     * @param  Request $request
     * @return array
     */
    protected function getCredentials(Request $request)
    {
        return [
            'username' =&gt; $request-&gt;input('username'),
            'password' =&gt; $request-&gt;input('password'),
            'verified' =&gt; true
        ];
    }


}
</code></pre>

<p>And here is the AuthController __construct method:</p>

<pre><code>public function __construct(Guard $auth, Registrar $registrar)
    {
        $this-&gt;auth = $auth;
        $this-&gt;registrar = $registrar;
        $this-&gt;middleware('guest', ['except' =&gt; ['logout', 'getLogout']]);

    }
</code></pre>

<p>Please help me as soon as possible. Any help would be appreciated. </p>