Untitled
unknown
php
2 years ago
492 B
6
Indexable
class SupportController extends Controller
{
private $supportRepo;
public function __construct(SupportRepo $supportRepo)
{
$this->supportRepo = $supportRepo;
}
public function getActiveSupportTickets(Request $request)
{
$user = $request->user();
$supportTickets = $this->supportRepo->getActiveSupportTickets($user->id);
return response()->json([
'success' => true,
'data' => $supportTickets
]);
}
}Editor is loading...
Leave a Comment