Skip to content

Commit

Permalink
Merge pull request #4 from AbdelElrafa/use-guaranteed-middleware
Browse files Browse the repository at this point in the history
Packages doesn't use App namespace
  • Loading branch information
smpita committed Sep 29, 2023
2 parents eaa66e1 + 7c06ca0 commit 76b8b0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DocsPanelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace AbdelElrafa\DocsPanel;

use AbdelElrafa\DocsPanel\Pages\DocsPages;
use App\Http\Middleware\EncryptCookies;
use App\Http\Middleware\VerifyCsrfToken;
use Filament\Facades\Filament;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
Expand All @@ -14,6 +12,8 @@
use Filament\Panel;
use Filament\Support\Colors\Color;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
Expand Down Expand Up @@ -82,8 +82,8 @@ public function panel(Panel $panel): Panel
// Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class, /** @phpstan-ignore-line */
VerifyCsrfToken::class, /** @phpstan-ignore-line */
EncryptCookies::class,
VerifyCsrfToken::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
Expand Down

0 comments on commit 76b8b0e

Please sign in to comment.