Skip to content

Commit e20868f

Browse files
committed
Found the bug
1 parent 374bec4 commit e20868f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Http/Middleware/Redirects.php renamed to src/Http/Middleware/RedirectsMiddleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Thoughtco\Redirects\Middleware;
3+
namespace Thoughtco\Redirects\Http\Middleware;
44

55
use Closure;
66
use Illuminate\Auth\Middleware\Authenticate as Middleware;
77
use Illuminate\Http\Request;
88
use Statamic\Facades\Entry;
99
use Statamic\Support\Str;
1010

11-
class Redirects extends Middleware
11+
class RedirectsMiddleware extends Middleware
1212
{
1313
public function handle(Request $request, Closure $next)
1414
{

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function boot()
1515

1616
// add our middleware
1717
Statamic::booted(function () {
18-
app('router')->prependMiddlewareToGroup('statamic.web', \Thoughtco\Redirects\Http\Middleware\Redirects::class);
18+
app('router')->prependMiddlewareToGroup('statamic.web', \Thoughtco\Redirects\Http\Middleware\RedirectsMiddleware::class);
1919
});
2020

2121
// after install we need to copy our global

0 commit comments

Comments
 (0)