Fix config issue
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use App\Http\Middleware\TrustProxies;
|
||||
use App\Providers\AppServiceProvider;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Foundation\Configuration\Exceptions;
|
||||
@@ -26,7 +27,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
->withMiddleware(function (Middleware $middleware) {
|
||||
$middleware->redirectGuestsTo(fn () => route('login'));
|
||||
$middleware->redirectUsersTo(AppServiceProvider::HOME);
|
||||
$middleware->trustProxies(at: explode(',', config('cachet.trusted_proxies')));
|
||||
$middleware->append(TrustProxies::class);
|
||||
|
||||
$middleware->throttleApi();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user