mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
fix: phpstan level 7 controller errors
This commit is contained in:
@@ -39,8 +39,7 @@ class ContactController extends Controller
|
||||
// Fetch owner account
|
||||
$user = User::where('username', config('unit3d.owner-username'))->first();
|
||||
|
||||
$input = $request->all();
|
||||
Mail::to($user->email)->send(new Contact($input));
|
||||
Mail::to($user->email)->send(new Contact($request->string('email')));
|
||||
|
||||
return to_route('home.index')
|
||||
->withSuccess('Your Message Was Successfully Sent');
|
||||
|
||||
Reference in New Issue
Block a user