I seem to get this issue every time I make a new invokable controller with a route. Can anyone help me fix it? I've tried deleting and remaking the class, remaking the route, it seems to hate it?
God knows how I got my ones before this working.
Route:
Route::post('user/forgot', 'Auth/ForgotPasswordController');
Controller;
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
use SendsPasswordResetEmails;
public function __invoke()
{
return $this->sendResetLinkEmail(request());
}
}