Laravel Fortify Return Inertia::render() instead of a blade view

Viewed 1711

I'm currently building a SPA with vue and installed jetstream (that comes with fortify) and using inertiajs to get my vue components. Is there a way to use inertia::render('') when i use Fortify::loginView()?

2 Answers

I have it working right now by requiring Intertia in the FortifyServiceProvider, and just calling an Inertia render like normal.

Fortify::loginView(function () {
        return Inertia::render('Login');
    })
Related