title: redirect user to a new page after verification his email laravel
body: <p>I am working on laravel project , user will register new account and then the system will send verification email to verify his email , every things going perfect , but I want to redirect user to another page after he verified his email , so in</p>
  <blockquote>
  <p>VerificationController</p>
  </blockquote>
  <p>I  can change the value of redirectTo variable ,</p>
  <pre><code>   protected $redirectTo =  RouteServiceProvider::admin;
  </code></pre>
  <p>but  I want to pass the user's id  in the URL , I tried to add</p>
  <pre><code>auth()-&gt;user()-&gt;id;
  </code></pre>
  <p>but I get error</p>
  <blockquote>
  <p>expression is not allowed as field default value</p>
  </blockquote>
  <p>so how can I pass user's id to redirect URL</p>