-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(global): Upgrade to Laravel 11
- Upgrade docker php 8.2 -> 8.3 - Improve Makefille add ssh command
- Loading branch information
Showing
23 changed files
with
1,034 additions
and
1,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,26 @@ APP_NAME="LPanel" | |
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_TIMEZONE=UTC | ||
APP_URL=http://lpanel.localhost | ||
|
||
SERVER_DISK_UNIT=/ | ||
MYSQL_MANAGER= | ||
POSTGRES_MANAGER= | ||
APP_LOCALE=en | ||
APP_FALLBACK_LOCALE=en | ||
APP_FAKER_LOCALE=en_US | ||
|
||
APP_MAINTENANCE_DRIVER=file | ||
APP_MAINTENANCE_STORE=database | ||
|
||
BCRYPT_ROUNDS=12 | ||
|
||
|
||
#LOG_CHANNEL=stack | ||
LOG_CHANNEL=daily | ||
LOG_STACK=single | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
#DB_CONNECTION=sqlite | ||
DB_CONNECTION=mysql | ||
# For localhost | ||
#DB_HOST=127.0.0.1 | ||
|
@@ -22,36 +32,44 @@ DB_DATABASE=lpanel | |
DB_USERNAME=root | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_DRIVER=database | ||
SESSION_LIFETIME=120 | ||
SESSION_ENCRYPT=false | ||
SESSION_PATH=/ | ||
SESSION_DOMAIN=null | ||
|
||
BROADCAST_DRIVER=log | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=database | ||
|
||
CACHE_STORE=database | ||
CACHE_PREFIX= | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_CLIENT=phpredis | ||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailhog | ||
MAIL_PORT=1025 | ||
MAIL_HOST=127.0.0.1 | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
VITE_APP_NAME="${APP_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,18 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Create The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The first thing we will do is create a new Laravel application instance | ||
| which serves as the "glue" for all the components of Laravel, and is | ||
| the IoC container for the system binding all of the various parts. | ||
| | ||
*/ | ||
|
||
$app = new Illuminate\Foundation\Application( | ||
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Bind Important Interfaces | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Next, we need to bind some important interfaces into the container so | ||
| we will be able to resolve them when needed. The kernels serve the | ||
| incoming requests to this application from both the web and CLI. | ||
| | ||
*/ | ||
|
||
$app->singleton( | ||
Illuminate\Contracts\Http\Kernel::class, | ||
App\Http\Kernel::class | ||
); | ||
|
||
$app->singleton( | ||
Illuminate\Contracts\Console\Kernel::class, | ||
App\Console\Kernel::class | ||
); | ||
|
||
$app->singleton( | ||
Illuminate\Contracts\Debug\ExceptionHandler::class, | ||
App\Exceptions\Handler::class | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Return The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This script returns the application instance. The instance is given to | ||
| the calling script so we can separate the building of the instances | ||
| from the actual running of the application and sending responses. | ||
| | ||
*/ | ||
|
||
return $app; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\Foundation\Configuration\Exceptions; | ||
use Illuminate\Foundation\Configuration\Middleware; | ||
|
||
return Application::configure(basePath: dirname(__DIR__)) | ||
->withRouting( | ||
web: __DIR__.'/../routes/web.php', | ||
commands: __DIR__.'/../routes/console.php', | ||
health: '/up', | ||
) | ||
->withMiddleware(function (Middleware $middleware) { | ||
// | ||
}) | ||
->withExceptions(function (Exceptions $exceptions) { | ||
// | ||
})->create(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
App\Providers\AppServiceProvider::class, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.