Skip to content

Commit

Permalink
Merge pull request #18 from computablefacts/issue_4_hardcoded_value
Browse files Browse the repository at this point in the history
Fixes #4: change hardcoded email by the config value
  • Loading branch information
PatBriPerso authored May 17, 2024
2 parents 835c077 + df30f8c commit 3fa9003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3fa9003

Please sign in to comment.