Skip to content

Commit 6baeb2b

Browse files
Merge pull request #37 from stackkit/feature/next
4.x
2 parents 0c26c20 + 4df85b2 commit 6baeb2b

File tree

1 file changed

+1
-60
lines changed

1 file changed

+1
-60
lines changed

README.md

+1-60
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The package will pick up on the scheduled settings and ping OhDear after the com
5050

5151
# Requirements
5252

53-
This package requires Laravel 10 or 11.
53+
This package requires Laravel 11 or 12.
5454

5555
# Installation
5656

@@ -128,9 +128,6 @@ public function boot()
128128

129129
To circumvent this, please add the following to `bootstrap/app.php`
130130

131-
<details>
132-
<summary>Laravel 11</summary>
133-
134131
```php
135132
<?php
136133

@@ -156,42 +153,11 @@ return Application::configure(basePath: dirname(__DIR__))
156153
})->create();
157154

158155
```
159-
</details>
160-
161-
<details>
162-
<summary>Laravel 10</summary>
163-
164-
```php
165-
<?php
166-
167-
/*
168-
|--------------------------------------------------------------------------
169-
| Create The Application
170-
|--------------------------------------------------------------------------
171-
|
172-
| The first thing we will do is create a new Laravel application instance
173-
| which serves as the "glue" for all the components of Laravel, and is
174-
| the IoC container for the system binding all of the various parts.
175-
|
176-
*/
177-
178-
$app = new Illuminate\Foundation\Application(
179-
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
180-
);
181-
182-
+ if (($_SERVER['REQUEST_URI'] ?? '') === '/cloud-scheduler-job') {
183-
+ $_ENV['APP_RUNNING_IN_CONSOLE'] = true;
184-
+ }
185-
```
186-
</details>
187156

188157
6 - Optional: whitelist route for maintenance mode
189158

190159
If you want to allow jobs to keep running if the application is down (`php artisan down`), update the following:
191160

192-
<details>
193-
<summary>Laravel 11</summary>
194-
195161
```php
196162
return Application::configure(basePath: dirname(__DIR__))
197163
->withRouting(
@@ -212,31 +178,6 @@ return Application::configure(basePath: dirname(__DIR__))
212178

213179

214180
```
215-
</details>
216-
<details>
217-
<summary>Laravel 10</summary>
218-
219-
```php
220-
<?php
221-
222-
namespace App\Http\Middleware;
223-
224-
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
225-
226-
class PreventRequestsDuringMaintenance extends Middleware
227-
{
228-
/**
229-
* The URIs that should be reachable while maintenance mode is enabled.
230-
*
231-
* @var array
232-
*/
233-
protected $except = [
234-
+ '/cloud-scheduler-job',
235-
];
236-
}
237-
238-
```
239-
</details>
240181

241182
# Cloud Scheduler Example
242183

0 commit comments

Comments
 (0)