title: Laravel Passport Route [login] not defined
body: <p>i use Laravel passport for auth</p>
  
  <p>in route api.php </p>
  
  <pre><code>Route::get('/todos', function(){
    return 'hello';
  })-&gt;middleware('auth:api');
  </code></pre>
  
  <p>but when open localhost:8000/api/todos I see the following error</p>
  
  <pre><code> InvalidArgumentException
  Route [login] not defined.
   * @return string
   *
   * @throws \InvalidArgumentException
   */
  public function route($name, $parameters = [], $absolute = true)
  {
      if (! is_null($route = $this-&gt;routes-&gt;getByName($name))) {
          return $this-&gt;toRoute($route, $parameters, $absolute);
      }
  
      throw new InvalidArgumentException("Route [{$name}] not defined.");
  }
  
  /**
   * Get the URL for a given route instance.
   *
   * @param  \Illuminate\Routing\Route  $route
   * @param  mixed  $parameters
   * @param  bool   $absolute
   * @return string
   *
   * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
   */
  protected function toRoute($route, $parameters, $absolute)
  {
      return $this-&gt;routeUrl()-&gt;to(
          $route, $this-&gt;formatParameters($p
  </code></pre>
  
  <p>I want if the user was not authenticated
  Do not redirect to any page and only see the page </p>