mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
fix: Move calls to env() out of UsersTableSeeder
env() calls should be made *only* from within config files. Note that the 'owner-username' is not prepended with 'default-' because, unlike the other two values, it should not be changed after installation, specifically because the account should always be looked-up by username and not ID (despite existing code that currently does the latter).
This commit is contained in:
@@ -40,7 +40,7 @@ class ContactController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
// Fetch owner account
|
||||
$user = User::where('id', '=', 3)->first();
|
||||
$user = User::where('username', config('unit3d.owner-username'))->first();
|
||||
|
||||
$input = $request->all();
|
||||
Mail::to($user->email, $user->username)->send(new Contact($input));
|
||||
|
||||
Reference in New Issue
Block a user