title: Laravel 5.5 - sendResetLinkEmail not working through API route
body: <p>I am trying to trigger a password reset email in Laravel 5.5 through an API route, I have this controller so far</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Api;
  use Illuminate\Http\Request;
  
  use Illuminate\Support\Facades\Response;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
  
  class ForgotPasswordController extends Controller
  {
  
      use SendsPasswordResetEmails;
  
      public function sendResetLinkEmail(Request $request) {
  
          if($request-&gt;input('email')) {
              $this-&gt;sendResetLinkEmail($request-&gt;input('email'));
          }
  
          /* Return Success Response */
          return Response::json(array(
              'error' =&gt; false,
              'status_code' =&gt; 200,
              'response' =&gt; 'forgotten_pass_request',
              'email' =&gt; $request-&gt;input('email'),
          ));
  
      }
  
  }
  </code></pre>
  
  <p>But when i try and send an API request with email I get the error</p>
  
  <pre><code>"message": "Type error: Argument 1 passed to App\\Http\\Controllers\\Api\\ForgotPasswordController::sendResetLinkEmail() must be an instance of Illuminate\\Http\\Request, string given, called in /home/myapp/myapp/app/Http/Controllers/Api/ForgotPasswordController.php on line 23",
  </code></pre>
  
  <p>Anyone any idea what I am doing wrong?</p>