dd users on tikcet create from app preview
This commit is contained in:
parent
1871b9b6e5
commit
f26730d85e
|
|
@ -129,7 +129,8 @@ public function createAppTicket(Request $request){
|
|||
$ticket = new Ticket($request->only('content', 'title','category_id', 'client_id', 'account_id', 'application_id'));
|
||||
$ticket['status_id'] = 1;
|
||||
$ticket->save();
|
||||
$users = Client::where('account_id', $request->account_id)->get();
|
||||
$users = Client::where('account_id', $request->account_id)->get('email');
|
||||
dd($users);
|
||||
Notification::send($users, new NewTicket());
|
||||
return redirect()->route('chat',['ticket_id' => $ticket->id]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue