Installation

How to add nuxt-sanctum-precognition to your Nuxt application!

Install Nuxt module

You can use the following command to install the module and automatically register it in your nuxt.config.ts modules section

npx nuxi@latest module add nuxt-sanctum-precognition

Required configuration

Once you have the module installed and registered, provide the configuration in nuxt.config.ts to get started, according to your setup (see more details here - Laravel Precognition)

nuxt.config.ts
export default defineNuxtConfig({
  //...

  precognition: {
    // There are no required fields to start working!
  },
})

That's it! You can now use Nuxt Precognition in your Nuxt app ✨

Last updated