Laravel call route from controller
<p>I am calling getting_started route after successfully login  :</p>

<pre><code>protected $redirectTo = '/getting_started';
</code></pre>

<p>Here is my getting_started route code :</p>

<pre><code>Route::get('/getting_started','UserController@getting_started');
</code></pre>

<p>And controller code :</p>

<pre><code>public function getting_started()
{
    $id= Auth::id();
    $user = DB::table('user_profiles')-&gt;where('user_id', '=', $id)-&gt;first();

    if($user-&gt;dashboard_access == 0)
    {
        DB::table('user_profiles')
            -&gt;where('user_id', $id)
            -&gt;update(['dashboard_access' =&gt; 1]);
        return view('user.getting_started');
    }

    return view('user.dashboard');
}
</code></pre>

<p>It works perfectly and show in url : </p>

<blockquote>
  <p><a href="http://localhost:8080/getting_started" rel="noreferrer">http://localhost:8080/getting_started</a></p>
</blockquote>

<p>Now I actually want that if <code>user.dashboard</code> view is call it show in url like :</p>

<blockquote>
  <p><a href="http://localhost:8080/dashboard" rel="noreferrer">http://localhost:8080/dashboard</a>`</p>
</blockquote>

<p>And on <code>getting_started</code> view show :</p>

<blockquote>
  <p><a href="http://localhost:8080/getting_started" rel="noreferrer">http://localhost:8080/getting_started</a></p>
</blockquote>

<p>It is possible to call dashboard route instead of :</p>

<pre><code>  return view('user.dashboard');
</code></pre>

<p>My dashobard route is :</p>

<pre><code>Route::get('/dashboard',['middleware' =&gt; 'auth', function () {
    return view('user.dashboard');
}]);
</code></pre>