Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gianmarx's avatar

Target [Laravel\Fortify\Contracts\LoginViewResponse] is not instantiable.

I put this on FortifyServiceProvider:

public function boot()
{
    Fortify::loginView(function () {
        return view('auth.login');
    });

but give me following error:Target [Laravel\Fortify\Contracts\LoginViewResponse] is not instantiable.I don't understand why, the view is there

0 likes
3 replies
Jones2674's avatar

This error arises when the loginView method in FortifyServiceProvider expects a class that implements the LoginViewResponse contract. However, in your code, you're returning a Blade view directly, which isn't an appropriate implementation.

1 like
cjholowatyj's avatar

One other possible issue which may arise for those who stumble on this post is that the auth.login route may be missing, which can also create this error (i.e. if Laravel Fortify cannot find auth.login, it cannot complete the LoginViewResponse, and therefore fails) This is especially relevant in situations where you may be declaring the Fortify routes manually

Please or to participate in this conversation.