protected function find($id)
    {
        $model = $this->model;
        $this->model = $model::find($id);
        if (!$this->model) {
            // belts and braces check - no model = doesn't exist (without being masked missing object property)
            // potential candidate for custom exception handling
            return false;
        }
        return $this->model->exists;
    }
protected function find($id)
    {
        $model = $this->model;
        $this->model = $model::find($id);
        if (!$this->model) {
            // belts and braces check - no model = doesn't exist (without being masked missing object property)
            // potential candidate for custom exception handling
            return false;
        }
        return $this->model->exists;
    }
protected function find ( $ id ) { $ model = $ this -> model ; $ this -> model = $ model :: find ( $ id ) ; if ( ! $ this -> model ) { // belts and braces check - no model = doesn't exist (without being masked missing object property) // potential candidate for custom exception handling return false ; } return $ this -> model -> exists ; }
find a record on current model, and return bool
@param $id
@return bool
find a record on current model and return bool