added middleware and fix invest-now api and added back button

This commit is contained in:
Ritikesh yadav
2024-04-12 16:16:36 +05:30
parent 47c700f8f2
commit 9f4004f001
12 changed files with 119 additions and 23 deletions

View File

@@ -190,7 +190,7 @@ class HomeController extends Controller
]);
if ($addLead) {
$userName = auth()->guard('users')->user()->name;
$userName = auth()->guard('users')->user()->name ?? $request->user()->name;
$notify['message'] = "$userName is interested in a product!";
$type = "Buyer Form";
$users = User::admins()->get();