fix: phpstan level 7 controller errors

This commit is contained in:
Roardom
2024-01-06 11:59:59 +00:00
parent c9613f60b5
commit 0ef7cc235a
20 changed files with 81 additions and 312 deletions
+1 -2
View File
@@ -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');