Nuxt - Laravel Precognition
GitHubNuxt Module
  • Getting Started
    • Introduction
    • Installation
  • Usage
    • Configuration
  • Validation
  • Error handling
  • File uploads
  • Use with Nuxt UI
  • Composables
    • usePrecognitionForm
    • usePrecognitionConfig
    • useNuxtFormValidator
  • Other
    • Breeze Nuxt template
    • Troubleshooting
Powered by GitBook
On this page
  • Features
  • Support
  1. Getting Started

Introduction

Nuxt module for Laravel integration to get a seamless experience with Sanctum and Precognition features.

NextInstallation

Last updated 2 months ago

This module provides an easy way to incorporate the Laravel Precognition validation approach into your project and leverage all the benefits of our existing module - .

Since the original implementation of laravel-precognition for Vue is using axios, we could not use it with ofetch and Nuxt.

This module is currently in beta mode, please raise an issue on GitHub if you experience any problems or incorrect behaviour! Thank you, and sorry for the inconvenience. 🤝

Your support helps to build a better developer experience!

Features

  • Sanctum-based client (see module)

  • Automatic handling of Precognition headers

  • Seamless work with Laravel validation errors

  • Easy to migrate from Laravel Precognition Vue package

  • TypeScript support

  • Predefined configuration

We recommend looking at our template that works flawlessly with Laravel application with preconfigured Sanctum, Echo and Precognition modules.

Support

If you use this module, please support me to help to maintain and improve it!

nuxt-auth-sanctum
nuxt-auth-sanctum
breeze-nuxt
breeze-api