Skip to content

Commit 2f572ce

Browse files
committed
upgrade to laravel 12.x
1 parent 2e477e1 commit 2f572ce

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Laravel Nuxt Boilerplate
44

5-
[![](https://img.shields.io/badge/Laravel-v11-ff2e21.svg)](https://laravel.com)
5+
[![](https://img.shields.io/badge/Laravel-v12-ff2e21.svg)](https://laravel.com)
66
[![](https://img.shields.io/badge/nuxt.js-v3-04C690.svg)](https://nuxt.com)
77
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fk2so-dev%2Flaravel-nuxt.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fk2so-dev%2Flaravel-nuxt?ref=badge_shield)
88
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/k2so-dev/laravel-nuxt/laravel.yml)](https://github.com/k2so-dev/laravel-nuxt/actions/workflows/laravel.yml)
@@ -33,12 +33,12 @@ The goal of the project is to create a template for development on Laravel and N
3333

3434
## Features
3535

36-
- [**Laravel 11**](https://laravel.com/docs/11.x) and [**Nuxt 3**](https://nuxt.com/)
37-
- [**Laravel Octane**](https://laravel.com/docs/11.x/octane) supercharges your application's performance by serving your application using high-powered application servers.
38-
- [**Laravel Telescope**](https://laravel.com/docs/11.x/telescope) provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps, and more.
39-
- [**Laravel Sanctum**](https://laravel.com/docs/11.x/sanctum) Token-based authorization is compatible with **SSR** and **CSR**
40-
- [**Laravel Socialite**](https://laravel.com/docs/11.x/socialite) OAuth providers
41-
- [**Laravel Sail**](https://laravel.com/docs/11.x/sail) Light-weight command-line interface for interacting with Laravel's default Docker development environment.
36+
- [**Laravel 12**](https://laravel.com/docs/12.x) and [**Nuxt 3**](https://nuxt.com/)
37+
- [**Laravel Octane**](https://laravel.com/docs/12.x/octane) supercharges your application's performance by serving your application using high-powered application servers.
38+
- [**Laravel Telescope**](https://laravel.com/docs/12.x/telescope) provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps, and more.
39+
- [**Laravel Sanctum**](https://laravel.com/docs/12.x/sanctum) Token-based authorization is compatible with **SSR** and **CSR**
40+
- [**Laravel Socialite**](https://laravel.com/docs/12.x/socialite) OAuth providers
41+
- [**Laravel Sail**](https://laravel.com/docs/12.x/sail) Light-weight command-line interface for interacting with Laravel's default Docker development environment.
4242
- [**Spatie Laravel Permissions**](https://spatie.be/docs/laravel-permission/v6/introduction) This package allows you to manage user permissions and roles in a database.
4343
- UI library [**Nuxt UI 3**](https://ui.nuxt.com/) based on [**TailwindCSS 4**](https://tailwindcss.com/) and [**Reka UI**](https://reka-ui.com/).
4444
- [**Pinia**](https://pinia.vuejs.org/ssr/nuxt.html) The intuitive store for Vue.js
@@ -49,9 +49,9 @@ The goal of the project is to create a template for development on Laravel and N
4949

5050
## Requirements
5151

52-
- PHP 8.2+ / Node 20+
53-
- **Redis** is required for the [**Throttling with Redis**](https://laravel.com/docs/11.x/routing#throttling-with-redis) feature
54-
- [**Laravel Octane**](https://laravel.com/docs/11.x/octane) supports 3 operating modes: Swoole (php extension), Roadrunner and FrankenPHP
52+
- PHP 8.3+ / Node 20+
53+
- **Redis** is required for the [**Throttling with Redis**](https://laravel.com/docs/12.x/routing#throttling-with-redis) feature
54+
- [**Laravel Octane**](https://laravel.com/docs/12.x/octane) supports 3 operating modes: Swoole (php extension), Roadrunner and FrankenPHP
5555

5656
## Installation
5757
### Standalone
@@ -63,7 +63,7 @@ The goal of the project is to create a template for development on Laravel and N
6363
6. `bun dev`
6464

6565
### Docker Deploy (Laravel Sail)
66-
[Laravel Sail](https://laravel.com/docs/11.x/sail) is a light-weight command-line interface for interacting with Laravel's default Docker development environment. Sail provides a great starting point for building a Laravel application using PHP, MySQL, and Redis without requiring prior Docker experience.
66+
[Laravel Sail](https://laravel.com/docs/12.x/sail) is a light-weight command-line interface for interacting with Laravel's default Docker development environment. Sail provides a great starting point for building a Laravel application using PHP, MySQL, and Redis without requiring prior Docker experience.
6767

6868
At its heart, Sail is the `docker-compose.yml` file and the `sail` script that is stored at the root of your project. The sail script provides a CLI with convenient methods for interacting with the Docker containers defined by the docker-compose.yml file.
6969

@@ -74,7 +74,7 @@ docker run --rm \
7474
-u "$(id -u):$(id -g)" \
7575
-v "$(pwd):/var/www/html" \
7676
-w /var/www/html \
77-
laravelsail/php83-composer:latest \
77+
laravelsail/php84-composer:latest \
7878
composer install --ignore-platform-reqs
7979
```
8080
2. Configuring A Shell Alias (Optional)
@@ -87,7 +87,7 @@ To make sure this is always available, you may add this to your shell configurat
8787
4. `sail bun install`
8888
5. `sail bun dev`
8989

90-
> Read the full [Laravel Sail](https://laravel.com/docs/11.x/sail) documentation to get the best user experience
90+
> Read the full [Laravel Sail](https://laravel.com/docs/12.x/sail) documentation to get the best user experience
9191
9292
## Upgrade
9393

@@ -213,7 +213,7 @@ https://github.com/k2so-dev/laravel-nuxt/assets/15279423/9b134491-1444-4323-a7a3
213213
* [Nuxt 3](https://nuxt.com/)
214214
* [Nuxt UI 3](https://ui.nuxt.com/)
215215
* [Tailwind CSS 4](https://tailwindcss.com/)
216-
* [Laravel 11x](https://laravel.com/docs/11.x)
216+
* [Laravel 12x](https://laravel.com/docs/12.x)
217217

218218
## License
219219
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fk2so-dev%2Flaravel-nuxt.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fk2so-dev%2Flaravel-nuxt?ref=badge_large)

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
"keywords": ["laravel", "framework"],
77
"license": "MIT",
88
"require": {
9-
"php": "^8.2",
9+
"php": "^8.3",
1010
"intervention/image": "^3.4",
11-
"laravel/framework": "^11.31",
11+
"laravel/framework": "^v12.2",
1212
"laravel/octane": "^2.3",
1313
"laravel/sanctum": "^4.0",
1414
"laravel/socialite": "^5.12",
1515
"laravel/tinker": "^2.9",
1616
"league/flysystem-aws-s3-v3": "^3.24",
1717
"reefki/laravel-device-detector": "^1.0",
18-
"spatie/laravel-permission": "^6.4"
18+
"spatie/laravel-permission": "^6.4",
19+
"symfony/filesystem": "^7.2"
1920
},
2021
"require-dev": {
2122
"roave/security-advisories": "dev-latest",

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
services:
22
laravelnuxt.api:
33
build:
4-
context: ./vendor/laravel/sail/runtimes/8.3
4+
context: ./vendor/laravel/sail/runtimes/8.4
55
dockerfile: Dockerfile
66
args:
77
WWWGROUP: '${WWWGROUP}'
8-
image: sail-8.3/app
8+
image: sail-8.4/app
99
extra_hosts:
1010
- 'host.docker.internal:host-gateway'
1111
ports:

0 commit comments

Comments
 (0)