Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30e341d

Browse filesBrowse files
committed
Adds support for Laravel 11
1 parent eab03eb commit 30e341d
Copy full SHA for 30e341d

File tree

6 files changed

+11
-87
lines changed
Filter options

6 files changed

+11
-87
lines changed

‎app/Commands/.gitkeep

Copy file name to clipboardExpand all lines: app/Commands/.gitkeep
Whitespace-only changes.

‎bootstrap/app.php

Copy file name to clipboard
+2-47Lines 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

Copy file name to clipboard
+5Lines 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

Copy file name to clipboardExpand all lines: composer.json
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
20-
"laravel-zero/framework": "^10.4",
21-
"nunomaduro/termwind": "^1.15.1"
19+
"php": "^8.2",
20+
"laravel-zero/framework": "^11"
2221
},
2322
"require-dev": {
2423
"laravel/pint": "^1.15.1",

‎config/app.php

Copy file name to clipboardExpand all lines: config/app.php
-13Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,6 @@
4242

4343
'env' => 'development',
4444

45-
/*
46-
|--------------------------------------------------------------------------
47-
| Application Timezone
48-
|--------------------------------------------------------------------------
49-
|
50-
| Here you may specify the default timezone for your application, which
51-
| will be used by the PHP date and date-time functions. We have gone
52-
| ahead and set this to a sensible default for you out of the box.
53-
|
54-
*/
55-
56-
'timezone' => 'UTC',
57-
5845
/*
5946
|--------------------------------------------------------------------------
6047
| Autoloaded Service Providers

‎config/commands.php

Copy file name to clipboardExpand all lines: config/commands.php
+2-24Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,7 @@
4040
*/
4141

4242
'add' => [
43-
// ..
44-
],
45-
46-
/*
47-
|--------------------------------------------------------------------------
48-
| Hidden Commands
49-
|--------------------------------------------------------------------------
50-
|
51-
| Your application commands will always be visible on the application list
52-
| of commands. But you can still make them "hidden" specifying an array
53-
| of commands below. All "hidden" commands can still be run/executed.
54-
|
55-
*/
56-
57-
'hidden' => [
58-
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
59-
Symfony\Component\Console\Command\DumpCompletionCommand::class,
60-
Symfony\Component\Console\Command\HelpCommand::class,
61-
Illuminate\Console\Scheduling\ScheduleRunCommand::class,
62-
Illuminate\Console\Scheduling\ScheduleListCommand::class,
63-
Illuminate\Console\Scheduling\ScheduleFinishCommand::class,
64-
Illuminate\Foundation\Console\VendorPublishCommand::class,
65-
LaravelZero\Framework\Commands\StubPublishCommand::class,
43+
//
6644
],
6745

6846
/*
@@ -77,7 +55,7 @@
7755
*/
7856

7957
'remove' => [
80-
// ..
58+
//
8159
],
8260

8361
];

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.