src/Configurable.php
protected function resolveAttribute($resource, $attribute)
    {
        $this->setResourceId(data_get($resource, 'id'));
        return parent::resolveAttribute($resource, $attribute);
    }
protected function resolveAttribute($resource, $attribute)
    {
        $this->setResourceId(data_get($resource, 'id'));
        return parent::resolveAttribute($resource, $attribute);
    }
protected function resolveAttribute ( $ resource , $ attribute ) { $ this -> setResourceId ( data_get ( $ resource , 'id' ) ) ; return parent :: resolveAttribute ( $ resource , $ attribute ) ; }
Overriding the base method in order to grab the model ID.

@param mixed  $resource  The resource class
@param string $attribute The attribute of the resource

@return mixed
Overriding the base method in order to grab the model ID .