Skip to content

Commit ca960a6

Browse files
authored
Update app bootstrap stub to version 13 #patch
1 parent f3bf6cd commit ca960a6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Actions/WriteLaravelElevenChangesAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function execute(): bool
2323
throw new \Exception("Couldn't load local bootstrap/app.php file");
2424
}
2525

26-
$remote = "https://raw.githubusercontent.com/laravel/laravel/11.x/bootstrap/app.php";
26+
$remote = "https://raw.githubusercontent.com/laravel/laravel/13.x/bootstrap/app.php";
2727
$response = Http::get($remote);
2828
if ($response->getStatusCode() !== 200) {
2929
throw new \Exception("Couldn't load remote bootstrap/app.php file");
@@ -36,7 +36,6 @@ public function execute(): bool
3636
throw new \Exception("Bootstrap/app.php file already modified, aborting overwrite");
3737
}
3838

39-
4039
$stub = file_get_contents(config('adminui-installer.root') . "/stubs/app.php.stub");
4140
file_put_contents($appFile, $stub);
4241

stubs/app.php.stub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use AdminUI\AdminUI\Middleware\DisableSsrForHumans;
34
use Illuminate\Support\Facades\Route;
45
use Illuminate\Foundation\Application;
56
use App\Http\Middleware\HandleInertiaRequests;
@@ -33,6 +34,8 @@ return Application::configure(basePath: dirname(__DIR__))
3334
// Load the Inertia middleware for the frontend
3435
$middleware->web(append: [
3536
HandleInertiaRequests::class,
37+
DisableSsrForHumans::class
38+
3639
]);
3740
})
3841
->withExceptions(function (Exceptions $exceptions) {

0 commit comments

Comments
 (0)