protected function resolveResourceKey(Model $model, string $resourceKey = null):string
    {
        if (! is_null($resourceKey)) {
            return $resourceKey;
        }

        if (method_exists($model, 'getResourceKey')) {
            return $model->getResourceKey();
        }

        return $model->getTable();
    }
protected function resolveResourceKey(Model $model, string $resourceKey = null):string
    {
        if (! is_null($resourceKey)) {
            return $resourceKey;
        }

        if (method_exists($model, 'getResourceKey')) {
            return $model->getResourceKey();
        }

        return $model->getTable();
    }
protected function resolveResourceKey ( Model $ model , string $ resourceKey = null ) : string { if ( ! is_null ( $ resourceKey ) ) { return $ resourceKey ; } if ( method_exists ( $ model , 'getResourceKey' ) ) { return $ model -> getResourceKey ( ) ; } return $ model -> getTable ( ) ; }
Resolve the resource key from the model.

@param  \Illuminate\Database\Eloquent\Model $model
@param  string|null                         $resourceKey
@return string
Resolve the resource key from the model .