Introduction

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

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 - nuxt-auth-sanctum.

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

Features

  • Sanctum-based client (see nuxt-auth-sanctum 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 breeze-nuxt template that works flawlessly with breeze-api 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!

Last updated