Skip to content

Commit

Permalink
Update to laravel 11 (#16)
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
sylfel authored Mar 19, 2024
1 parent 93f0896 commit c52e2e3
Show file tree
Hide file tree
Showing 9 changed files with 520 additions and 535 deletions.
2 changes: 0 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ protected function schedule(Schedule $schedule): void
protected function commands(): void
{
$this->load(__DIR__.'/Commands');

require base_path('routes/console.php');
}
}
6 changes: 0 additions & 6 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ class Kernel extends HttpKernel
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],

'api' => [
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
\Illuminate\Routing\Middleware\ThrottleRequests::class.':api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];

/**
Expand Down
11 changes: 0 additions & 11 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

namespace App\Providers;

use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;

class RouteServiceProvider extends ServiceProvider
Expand All @@ -24,15 +21,7 @@ class RouteServiceProvider extends ServiceProvider
*/
public function boot(): void
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
});

$this->routes(function () {
Route::middleware('api')
->prefix('api')
->group(base_path('routes/api.php'));

Route::middleware('web')
->group(base_path('routes/web.php'));
});
Expand Down
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
"license": "MIT",
"require": {
"php": "^8.2",
"filament/actions": "^v3.2.47",
"filament/notifications": "v3.2.47",
"filament/tables": "^3.2",
"filament/actions": "v3.2.53",
"filament/notifications": "v3.2.53",
"filament/tables": "v3.2.53",
"guzzlehttp/guzzle": "^7.8.1",
"laravel/framework": "v10.47.0",
"laravel/sanctum": "^v3.3.3",
"laravel/framework": "v11.0.7",
"laravel/sanctum": "v4.0.0",
"laravel/tinker": "^v2.9.0",
"livewire/livewire": "v3.4.8",
"livewire/volt": "^v1.6.2"
"livewire/livewire": "v3.4.9",
"livewire/volt": "v1.6.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "v3.11.0",
"barryvdh/laravel-debugbar": "v3.12.2",
"fakerphp/faker": "^v1.23.1",
"larastan/larastan": "v2.9.2",
"laravel/breeze": "v1.29.1",
"laravel/breeze": "v2.0.0",
"laravel/pint": "v1.14.0",
"laravel/sail": "v1.28.2",
"mockery/mockery": "^1.6.7",
"nunomaduro/collision": "^7.10.0",
"pestphp/pest": "v2.34.1",
"laravel/sail": "v1.29.0",
"mockery/mockery": "^1.6.9",
"nunomaduro/collision": "^v8.1.1",
"pestphp/pest": "v2.34.4",
"pestphp/pest-plugin-laravel": "v2.3.0",
"spatie/laravel-ignition": "^2.4.2"
},
Expand Down
Loading

0 comments on commit c52e2e3

Please sign in to comment.