Skip to content

Commit

Permalink
#198 - Laravel 11 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofrewak committed Mar 20, 2024
1 parent dfde2e0 commit 2a7b97f
Show file tree
Hide file tree
Showing 31 changed files with 770 additions and 1,154 deletions.
15 changes: 0 additions & 15 deletions app/Console/Kernel.php

This file was deleted.

11 changes: 0 additions & 11 deletions app/Exceptions/Handler.php

This file was deleted.

8 changes: 1 addition & 7 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@

namespace Blumilk\Website\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller
{
use AuthorizesRequests;
use ValidatesRequests;
}
16 changes: 0 additions & 16 deletions app/Http/Middleware/Authenticate.php

This file was deleted.

27 changes: 0 additions & 27 deletions app/Http/Middleware/RedirectIfAuthenticated.php

This file was deleted.

16 changes: 0 additions & 16 deletions app/Http/Middleware/TrimStrings.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/TrustHosts.php

This file was deleted.

19 changes: 0 additions & 19 deletions app/Http/Middleware/TrustProxies.php

This file was deleted.

23 changes: 0 additions & 23 deletions app/Providers/EventServiceProvider.php

This file was deleted.

43 changes: 0 additions & 43 deletions app/Providers/RouteServiceProvider.php

This file was deleted.

29 changes: 18 additions & 11 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

declare(strict_types=1);

use Blumilk\Website\Console\Kernel as ConsoleKernel;
use Blumilk\Website\Exceptions\Handler;
use Blumilk\Website\Http\Kernel as HttpKernel;
use Illuminate\Contracts\Console\Kernel as ConsoleKernelContract;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Http\Kernel as HttpKernelContract;
use CodeZero\LocalizedRoutes\Controllers\FallbackController;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;

$app = new Application($_ENV["APP_BASE_PATH"] ?? dirname(__DIR__));
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
using: function (): void {
Route::middleware("web")
->prefix("dashboard")
->group(base_path("routes/dashboard.php"));

$app->singleton(HttpKernelContract::class, HttpKernel::class);
$app->singleton(ConsoleKernelContract::class, ConsoleKernel::class);
$app->singleton(ExceptionHandler::class, Handler::class);
Route::localized(function (): void {
Route::middleware("web")
->group(base_path("routes/web.php"));
});

return $app;
Route::fallback(FallbackController::class);
},
)
->withMiddleware()
->withExceptions()
->create();
9 changes: 9 additions & 0 deletions bootstrap/providers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

use Blumilk\Website\Providers\AppServiceProvider;

return [
AppServiceProvider::class,
];
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-pdo": "*",
"codezero/laravel-localized-routes": "^3.1",
"guzzlehttp/guzzle": "^7.8.0",
"laravel/framework": "^10.32.1",
"laravel/sanctum": "^3.3.2",
"laravel/tinker": "^2.8.2"
"codezero/laravel-localized-routes": "^4.0",
"guzzlehttp/guzzle": "^7.8",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9"
},
"require-dev": {
"blumilksoftware/codestyle": "^v2.8.0",
"fakerphp/faker": "^1.23.0",
"mockery/mockery": "^1.6.6",
"nunomaduro/collision": "^7.10.0",
"nunomaduro/larastan": "^2.6.4",
"phpunit/phpunit": "^10.4.2",
"spatie/laravel-ignition": "^2.3.1"
"blumilksoftware/codestyle": "^v2.8",
"fakerphp/faker": "^1.23",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.1",
"nunomaduro/larastan": "^2.9",
"phpunit/phpunit": "^10.5",
"spatie/laravel-ignition": "^2.4"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 2a7b97f

Please sign in to comment.