diff --git a/.editorconfig b/.editorconfig
index 8f0de65..5d7ab14 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -11,7 +11,7 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
-[*.{yml,yaml}]
+[*.{yml,yaml,ts,vue}]
indent_size = 2
[docker-compose.yml]
diff --git a/README.md b/README.md
index f83b8a0..499520a 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,9 @@
The goal of the project is to create a template for development on Laravel and Nuxt with maximum API performance, ready-made authorization methods, image uploading with optimization and ready-made user roles.
+> [!WARNING]
+> You are on the dev branch, Nuxt UI version 3 which is used here is in alpha testing.
+
- [Features](#features)
@@ -19,7 +22,7 @@ The goal of the project is to create a template for development on Laravel and N
- [Docker Deploy (Laravel Sail)](#docker-deploy-laravel-sail)
- [Upgrade](#upgrade)
- [Usage](#usage)
- - [Nuxt $fetch](#nuxt-fetch)
+ - [Fetch wrapper](#fetch-wrapper)
- [Authentication](#authentication)
- [Nuxt Middleware](#nuxt-middleware)
- [Laravel Middleware](#laravel-middleware)
@@ -40,19 +43,18 @@ The goal of the project is to create a template for development on Laravel and N
- [**Laravel Socialite**](https://laravel.com/docs/11.x/socialite) OAuth providers
- [**Laravel Sail**](https://laravel.com/docs/11.x/sail) Light-weight command-line interface for interacting with Laravel's default Docker development environment.
- [**Spatie Laravel Permissions**](https://spatie.be/docs/laravel-permission/v6/introduction) This package allows you to manage user permissions and roles in a database.
- - UI library [**Nuxt UI**](https://ui.nuxt.com/) based on [**TailwindCSS**](https://tailwindui.com/) and [**HeadlessUI**](https://headlessui.com/).
+ - UI library [**Nuxt UI 3**](https://ui3.nuxt.dev/) based on [**TailwindCSS 4**](https://tailwindcss.com/) and [**Reka UI**](https://reka-ui.com/).
- [**Pinia**](https://pinia.vuejs.org/ssr/nuxt.html) The intuitive store for Vue.js
- Integrated pages: login, registration, password recovery, email confirmation, account information update, password change.
- Temporary uploads with cropping and optimization of images.
- Device management
- - [**ofetch**](https://github.com/unjs/ofetch) preset for working with Laravel API, which makes it possible
-use $**fetch** without having to resort to custom $**fetch** wrappers.
+ - Enhanced Fetch Wrappers : Utilizes `$http` and `useHttp`, which extend the capabilities of **Nuxt's** standard `$fetch` and `useFetch`.
## Requirements
- PHP 8.2+ / Node 20+
- **Redis** is required for the [**Throttling with Redis**](https://laravel.com/docs/11.x/routing#throttling-with-redis) feature
- - [**Laravel Octane**](https://laravel.com/docs/11.x/octane) supports 2 operating modes: Swoole (php extension) or Roadrunner
+ - [**Laravel Octane**](https://laravel.com/docs/11.x/octane) supports 3 operating modes: Swoole (php extension), Roadrunner and FrankenPHP
## Installation
### Standalone
@@ -106,30 +108,38 @@ sail composer update
## Usage
-### Nuxt $fetch
+### Fetch wrapper
+
+To integrate with the API, enhanced `$http` and `useHttp` wrappers are used, expanding the functionality of Nuxt's standard `$fetch` and `useFetch`. The `$http` wrapper includes custom interceptors to replace the originals:
+- `onFetch` instead of `onRequest`
+- `onFetchError` instead of `onRequestError`
+- `onFetchResponse` instead of `onResponse`
+- `onFetchResponseError` instead of `onResponseError`
-To work with the api, the default path is **"/api/v1"**. All requests from **Nuxt** to the **Laravel API** can be executed without wrappers, as described in the **Nuxt.js** documentation. For example, the code for authorizing a user by email and password:
+Additionally, `$http` predefines a base url, authorization headers, and proxy IP for convenient API work in SSR mode.
+For example, the code for authorizing a user by email and password:
```vue
-
+ status.value === "pending");
type="email"
autofocus
/>
-
+
-
-
-
+
+
+
-
-
+
+