added middleware and fix invest-now api and added back button
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user