src/Models/CmsModel.php
protected function getRelationForImagesWithResizesCaller()
    {
        $self = __FUNCTION__;

        $caller = Arr::first(debug_backtrace(false), function ($key, $trace) use ($self) {
            $caller = $trace['function'];

            return ! in_array($caller, ['getImagesWithResizes']) && $caller != $self;
        });

        if (is_null($caller)) return null;

        // strip 'get' from front and 'attribute' from rear
        return Str::camel(substr($caller['function'], 3, -9));
    }
protected function getRelationForImagesWithResizesCaller()
    {
        $self = __FUNCTION__;

        $caller = Arr::first(debug_backtrace(false), function ($key, $trace) use ($self) {
            $caller = $trace['function'];

            return ! in_array($caller, ['getImagesWithResizes']) && $caller != $self;
        });

        if (is_null($caller)) return null;

        // strip 'get' from front and 'attribute' from rear
        return Str::camel(substr($caller['function'], 3, -9));
    }
protected function getRelationForImagesWithResizesCaller ( ) { $ self = __FUNCTION__ ; $ caller = Arr :: first ( debug_backtrace ( false ) , function ( $ key , $ trace ) use ( $ self ) { $ caller = $ trace [ 'function' ] ; return ! in_array ( $ caller , [ 'getImagesWithResizes' ] ) && $ caller != $ self ; } ) ; if ( is_null ( $ caller ) ) return null ; // strip 'get' from front and 'attribute' from rear return Str :: camel ( substr ( $ caller [ 'function' ] , 3 , - 9 ) ) ; }
Get the relationship name of the image accessor for which images are enriched

@return string
Get the relationship name of the image accessor for which images are enriched