where('frame',$frame)->where('index',$index)->firstOrFail()); } public function hasFlag(string $flag) { // @todo When flags is in the DB update this. return isset($this->flags) ? in_array($flag,$this->flags,FALSE) : FALSE; } /** * Frame Types */ public function type() { return $this->type ?: 'i'; } }