'contactrequests.browse', 'create' => 'contactrequests.create', 'update' => 'contactrequests.update', 'destroy' => 'contactrequests.destroy' ]; protected $showRoute = 'contactrequests.contactrequests.show'; protected $storeRequest = ContactRequestApiRequest::class; protected $updateRequest = ContactRequestApiRequest::class; public function __construct() { parent::__construct(); } public function allStatuses() { $choices = TicketStatus::all()->pluck('name', 'id')->toArray(); return $this->respond(true, ['user' => $choices], [], 'data fetched successfully'); } public function allPriorities() { $choices = TicketPriority::all()->pluck('name', 'id')->toArray(); return $this->respond(true, ['user' => $choices], [], 'data fetched successfully'); } public function allSeverities() { $choices = TicketSeverity::all()->pluck('name', 'id')->toArray(); return $this->respond(true, ['user' => $choices], [], 'data fetched successfully'); } public function allCategories() { $choices = TicketCategory::all()->pluck('name', 'id')->toArray(); return $this->respond(true, ['user' => $choices], [], 'data fetched successfully'); } }