Skip to content

Commit 545ebda

Browse files
authored
refactor: The name of the middleware folder (#15)
1 parent e7f2cae commit 545ebda

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ https://my-website.com/admin/secret
5757
Open the `app/Providers/Filament/AdminPanelProvider.php` and right at the start of the list of middleware, add `VerifyAdminAccessSecret` middleware as follows.
5858

5959
```php
60-
use Dasundev\FilamentAccessSecret\Middlewares\VerifyAdminAccessSecret;
60+
use Dasundev\FilamentAccessSecret\Middleware\VerifyAdminAccessSecret;
6161

6262
class AdminPanelProvider extends PanelProvider
6363
{

src/Middlewares/VerifyAdminAccessSecret.php renamed to src/Middleware/VerifyAdminAccessSecret.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Dasundev\FilamentAccessSecret\Middlewares;
3+
namespace Dasundev\FilamentAccessSecret\Middleware;
44

55
use Closure;
66
use Dasundev\FilamentAccessSecret\AccessSecretCookie;

workbench/app/Providers/Filament/AdminPanelProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Workbench\App\Providers\Filament;
44

5-
use Dasundev\FilamentAccessSecret\Middlewares\VerifyAdminAccessSecret;
5+
use Dasundev\FilamentAccessSecret\Middleware\VerifyAdminAccessSecret;
66
use Filament\Http\Middleware\Authenticate;
77
use Filament\Http\Middleware\DisableBladeIconComponents;
88
use Filament\Http\Middleware\DispatchServingFilamentEvent;

0 commit comments

Comments
 (0)