Example #1
0
 /**
  * Get the eloquent object of a definition
  *
  * @param string $identifier The identifier of the dataset definition
  *
  * @return Eloquent
  */
 private function getEloquentDefinition($identifier)
 {
     return \Definition::whereRaw("? like CONCAT(collection_uri, '/', resource_name , '/', '%')", array($identifier . '/'))->with(['location', 'attributions'])->first();
 }