'', 'entry' => '', 'call' => '', 'title' => '', 'do' => '', 'state' => '', 'direct' => 0, 'url' => '', 'icon' => 'wi wi-appsetting', 'displayorder' => 0, ); public function deleteByName($modulename) { return $this->query->where('module', $modulename)->delete(); } public function isEntryExists($modulename, $entry, $do) { return $this->query->where('module', $modulename)->where('entry', $entry)->where('do', $do)->exists(); } public function isCallExists($modulename, $entry, $call) { return $this->query->where('module', $modulename)->where('entry', $entry)->where('call', $call)->exists(); } public function getByEntryDo($modulename, $entry, $do) { return $this->query->where('module', $modulename)->where('entry', $entry)->where('do', $do)->get(); } public function getByEntryCall($modulename, $entry, $call) { return $this->query->where('module', $modulename)->where('entry', $entry)->where('call', $call)->get(); } }