From df30f8cfde9b56d5760100980fe5c85d10bcefd4 Mon Sep 17 00:00:00 2001 From: Patrick Brisacier Date: Fri, 17 May 2024 14:05:31 +0200 Subject: [PATCH] Fix #4: change hardcoded email by the config value --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 015461f..18c2dc4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,7 +15,7 @@ use Illuminate\Support\Facades\Validator; Route::get('catalog', function () { - \Illuminate\Support\Facades\Auth::login(\App\User::where('email', 'engineering@computablefacts.com')->firstOrFail()); + \Illuminate\Support\Facades\Auth::login(\App\User::where('email', config('towerify.admin.email'))->firstOrFail()); $apps = \App\Models\Product::orderBy('name') ->get() ->map(function (\App\Models\Product $product) {