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

Nick7's avatar
Level 2

Does Nova works with JetStream?

How i use Jetstream with Laravel Nova?

Works out of the box? What do you recommend; Livewire, Intertia oder only Fortify with Nova ui? Maybe Inertia because Nova is also Vue? What is the best sequence. First install Jetstream then Nova or reverse order? Thanks for a tip.

0 likes
11 replies
bobbybouwmann's avatar

Nova and Jetstream are two completely different things. Nova can be seen as an admin panel, where jetstream is part of the interface for your users.

You can perfectly combine the two in one application. Nova is connected to the same authentication by default as your application. However, you normally have an extra check for admin users as an example.

4 likes
Nick7's avatar
Level 2

Ok, i think i just try it. My question is, can i use the advantages of jetstream (teams, 2fa ...) out of the box in nova or i have to choice between nova authentication or jetstream. it would be nice to use the jetstream features within nova.

bobbybouwmann's avatar

Nova has by default it's own authentication form. However, if you use the same authentication driver for Jetstream as for Nova you should be able to log in to your normal application and then open up Nova without any extra actions. I'm not sure about the other way around, because for 2FA you need extra steps which I believe are not built in right now for Nova.

1 like
xqus's avatar

If you edit your nova.php config file, you can change the middleware used for Nova.

If you change Authenticate::class to auth it will use the Jetstream login and require 2FA if you have it enabled.

5 likes
ha@knopsmedia's avatar

I did it but it gives me error of (Target class [App\Http\Controllers\Auth\AuthenticatedSessionController] does not exist.) on jetstream login

RhysLees's avatar

@ha@knopsmedia in config/nova.php just add

'auth:sanctum', 'verified',

under 'web', in the middleware array don't remove Authenticate::class

3 likes
RhysLees's avatar

also in NovaServiceProvider.php under the routes function change: Nova::routes() ->withAuthenticationRoutes() ->withPasswordResetRoutes() ->register(); to: Nova::routes();

you will need to vendor publish your nova-views and under resources\views\vendor\nova\partials\user.blade.php replace the logout route with 'logout'

1 like
anditsung's avatar

@NanoCellMusic using this not working when using inertia. when user access the url web.com/nova will redirect to web.com/login after post the data will create a modal showing nova

is it posible on laravel jetstream inertia?

Manasse's avatar

@anditsung I had the same problem with the modal showing nova when using Inertia.... . so to solve this problem, I had to force the reload of the page by adding this. window.location.href = window.location.href in the jetstream Login. vue (ressources/js/pages/Auth/Login.vue ) .

methods: {
           submit() {
               this.form
                   .transform(data => ({
                       ... data,
                       remember: this.form.remember ? 'on' : ''
                   }))
                   .post(this.route('login'), {
                       onFinish: () =>{
                               this.form.reset('password');
                               window.location.href = window.location.href;
                       },
                   })

           }
       }
3 likes

Please or to participate in this conversation.