private function validateRelatedModel($related)
    {
        $uses = class_uses_recursive($related);

        if (! array_key_exists('Awobaz\Compoships\Compoships', $uses) && ! is_subclass_of($related,
                'Awobaz\Compoships\Database\Eloquent\Model')) {
            throw new InvalidUsageException("The related model '${related}' must either extend 'Awobaz\Compoships\Database\Eloquent\Model' or use the 'Awobaz\Compoships\Compoships' trait");
        }
    }
private function validateRelatedModel($related)
    {
        $uses = class_uses_recursive($related);

        if (! array_key_exists('Awobaz\Compoships\Compoships', $uses) && ! is_subclass_of($related,
                'Awobaz\Compoships\Database\Eloquent\Model')) {
            throw new InvalidUsageException("The related model '${related}' must either extend 'Awobaz\Compoships\Database\Eloquent\Model' or use the 'Awobaz\Compoships\Compoships' trait");
        }
    }
private function validateRelatedModel ( $ related ) { $ uses = class_uses_recursive ( $ related ) ; if ( ! array_key_exists ( 'Awobaz\Compoships\Compoships' , $ uses ) && ! is_subclass_of ( $ related , 'Awobaz\Compoships\Database\Eloquent\Model' ) ) { throw new InvalidUsageException ( "The related model '${related}' must either extend 'Awobaz\Compoships\Database\Eloquent\Model' or use the 'Awobaz\Compoships\Compoships' trait" ) ; } }
Validate the related model for Compoships compatibility

@param  $related
@return void
@throws InvalidUsageException
Validate the related model for Compoships compatibility