public function current() { return $this->current; }
/** * Get the name of the resource currently being accessed. * * @return string */ public function getCurrentResource() { if ($currentRoute = $this->router->current()) { return $currentRoute->getAction()['resource']; } return null; }