src/Label305/AujaLaravel/Config/AujaConfigurator.php
public function getRelationsForModel(Model $model) {
        if (empty($this->models)) {
            throw new \LogicException('AujaConfigurator not configured yet! Call configure first.');
        }

        return !is_null($model) && isset($this->relations[$model->getName()]) ? $this->relations[$model->getName()] : [];
    }
public function getRelationsForModel(Model $model) {
        if (empty($this->models)) {
            throw new \LogicException('AujaConfigurator not configured yet! Call configure first.');
        }

        return !is_null($model) && isset($this->relations[$model->getName()]) ? $this->relations[$model->getName()] : [];
    }
public function getRelationsForModel ( Model $ model ) { if ( empty ( $ this -> models ) ) { throw new \ LogicException ( 'AujaConfigurator not configured yet! Call configure first.' ) ; } return ! is_null ( $ model ) && isset ( $ this -> relations [ $ model -> getName ( ) ] ) ? $ this -> relations [ $ model -> getName ( ) ] : [ ] ; }
Returns an array of `Relations` for given `Model`.

@param Model $model The `Model`.

@return Relation[] The `Relations`.
Returns an array of Relations for given Model .