Skip to content

Commit ffdd8d4

Browse files
committed
feat: update to Laravel Zero 12.x
1 parent f29523e commit ffdd8d4

File tree

3 files changed

+8
-48
lines changed

3 files changed

+8
-48
lines changed

bootstrap/app.php

100755100644
Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,5 @@
11
<?php
22

3-
/*
4-
|--------------------------------------------------------------------------
5-
| Create The Application
6-
|--------------------------------------------------------------------------
7-
|
8-
| The first thing we will do is create a new Laravel application instance
9-
| which serves as the "glue" for all the components of Laravel, and is
10-
| the IoC container for the system binding all of the various parts.
11-
|
12-
*/
3+
use LaravelZero\Framework\Application;
134

14-
$app = new LaravelZero\Framework\Application(
15-
dirname(__DIR__)
16-
);
17-
18-
/*
19-
|--------------------------------------------------------------------------
20-
| Bind Important Interfaces
21-
|--------------------------------------------------------------------------
22-
|
23-
| Next, we need to bind some important interfaces into the container so
24-
| we will be able to resolve them when needed. The kernels serve the
25-
| incoming requests to this application from both the web and CLI.
26-
|
27-
*/
28-
29-
$app->singleton(
30-
Illuminate\Contracts\Console\Kernel::class,
31-
LaravelZero\Framework\Kernel::class
32-
);
33-
34-
$app->singleton(
35-
Illuminate\Contracts\Debug\ExceptionHandler::class,
36-
Illuminate\Foundation\Exceptions\Handler::class
37-
);
38-
39-
/*
40-
|--------------------------------------------------------------------------
41-
| Return The Application
42-
|--------------------------------------------------------------------------
43-
|
44-
| This script returns the application instance. The instance is given to
45-
| the calling script so we can separate the building of the instances
46-
| from the actual running of the application and sending responses.
47-
|
48-
*/
49-
50-
return $app;
5+
return Application::configure(basePath: dirname(__DIR__))->create();

bootstrap/providers.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
return [
4+
App\Providers\AppServiceProvider::class,
5+
];

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": "^8.2"
2020
},
2121
"require-dev": {
22-
"laravel-zero/framework": "^11.0",
22+
"laravel-zero/framework": "^12.0",
2323
"laravel-zero/phar-updater": "^1.4"
2424
},
2525
"autoload": {

0 commit comments

Comments
 (0)