public function findByIdentifier($uuid, $checkExists = false)
    {
        $record = $this->prepareQuery($this->model->where('identifier', $uuid))->first();

        if ($checkExists) {
            return ! empty($record);
        }

        return $record;
    }
public function findByIdentifier($uuid, $checkExists = false)
    {
        $record = $this->prepareQuery($this->model->where('identifier', $uuid))->first();

        if ($checkExists) {
            return ! empty($record);
        }

        return $record;
    }
public function findByIdentifier ( $ uuid , $ checkExists = false ) { $ record = $ this -> prepareQuery ( $ this -> model -> where ( 'identifier' , $ uuid ) ) -> first ( ) ; if ( $ checkExists ) { return ! empty ( $ record ) ; } return $ record ; }
Find by identifier

@param $uuid
@param $checkExists
@return mixed
Find by identifier