Skip to content

Commit e86ecd2

Browse files
authored
Merge pull request #33 from irabbi360/upgrade_11
upgrade to laravel 11
2 parents d26ec2f + e72e35f commit e86ecd2

File tree

4 files changed

+38
-19
lines changed

4 files changed

+38
-19
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Providers;
44

5+
use Illuminate\Support\Facades\Vite;
56
use Illuminate\Support\ServiceProvider;
67

78
class AppServiceProvider extends ServiceProvider
@@ -23,6 +24,6 @@ public function register()
2324
*/
2425
public function boot()
2526
{
26-
//
27+
Vite::prefetch(concurrency: 3);
2728
}
2829
}

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
"keywords": ["spa", "laravel", "vue"],
66
"license": "MIT",
77
"require": {
8-
"php": "^8.1",
8+
"php": "^8.2",
99
"guzzlehttp/guzzle": "^7.2",
10-
"laravel/framework": "^10.0",
11-
"laravel/sanctum": "^3.2",
12-
"laravel/tinker": "^2.8",
10+
"laravel/framework": "^11.0",
11+
"laravel/sanctum": "^4.0",
12+
"laravel/tinker": "^2.9",
1313
"laravel/ui": "^4.2",
14-
"rakutentech/laravel-request-docs": "^2.23",
15-
"spatie/laravel-medialibrary": "^10.13",
16-
"spatie/laravel-permission": "^5.10"
14+
"rakutentech/laravel-request-docs": "^2.41",
15+
"spatie/laravel-medialibrary": "^11.9.2",
16+
"spatie/laravel-permission": "^6.9"
1717
},
1818
"require-dev": {
19-
"fakerphp/faker": "^1.9.1",
20-
"laravel/pint": "^1.0",
21-
"laravel/sail": "^1.18",
22-
"mockery/mockery": "^1.4.4",
23-
"nunomaduro/collision": "^7.0",
24-
"phpunit/phpunit": "^10.0",
19+
"fakerphp/faker": "^1.23",
20+
"laravel/pint": "^1.13",
21+
"laravel/sail": "^1.26",
22+
"mockery/mockery": "^1.6",
23+
"nunomaduro/collision": "^8.1",
24+
"phpunit/phpunit": "^11.0.1",
2525
"spatie/laravel-ignition": "^2.0"
2626
},
2727
"autoload": {

config/sanctum.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@
4848

4949
'expiration' => null,
5050

51+
/*
52+
|--------------------------------------------------------------------------
53+
| Token Prefix
54+
|--------------------------------------------------------------------------
55+
|
56+
| Sanctum can prefix new tokens in order to take advantage of numerous
57+
| security scanning initiatives maintained by open source platforms
58+
| that notify developers if they commit tokens into repositories.
59+
|
60+
| See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning
61+
|
62+
*/
63+
64+
'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''),
65+
5166
/*
5267
|--------------------------------------------------------------------------
5368
| Sanctum Middleware
@@ -60,8 +75,9 @@
6075
*/
6176

6277
'middleware' => [
63-
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
64-
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
78+
'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,
79+
'encrypt_cookies' => Illuminate\Cookie\Middleware\EncryptCookies::class,
80+
'validate_csrf_token' => Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class,
6581
],
6682

6783
];

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
22
"private": true,
3+
"type": "module",
34
"scripts": {
45
"dev": "vite",
56
"build": "vite build"
67
},
78
"devDependencies": {
89
"@popperjs/core": "^2.11.8",
910
"@vitejs/plugin-vue": "^4.3.4",
10-
"axios": "^1.5.1",
11+
"axios": "^1.7.4",
12+
"concurrently": "^9.0.1",
1113
"bootstrap": "^5.3.2",
12-
"laravel-vite-plugin": "^0.8.1",
14+
"laravel-vite-plugin": "^1.0",
1315
"lodash": "^4.17.21",
1416
"postcss": "^8.4.30",
1517
"sass": "^1.68.0",
16-
"vite": "^4.5.5",
18+
"vite": "^5.0",
1719
"vue": "^3.5.11"
1820
},
1921
"dependencies": {

0 commit comments

Comments
 (0)