src/Concerns/HasFlexible.php
/**
     * Parse a Flexible Content attribute
     *
     * @param string $attribute
     * @param array  $layoutMapping
     * @return Whitecube\NovaFlexibleContent\Layouts\Collection
     */
Parse a Flexible Content attribute
@param string $attribute
@param array  $layoutMapping
@return Whitecube\NovaFlexibleContent\Layouts\Collection
Parse a Flexible Content attribute @param string $attribute @param array $layoutMapping @return Whitecube \ NovaFlexibleContent \ Layouts \ Collection
public function flexible($attribute, $layoutMapping = [])
    {
        $flexible = $this->attributes[$attribute] ?? null;
        if(app()->getProvider(NovaServiceProvider::class)) {
            return $flexible;
        }
        return $this->toFlexible($flexible ?: null, $layoutMapping);
    }
public function flexible ( $ attribute , $ layoutMapping = [ ] ) { $ flexible = $ this -> attributes [ $ attribute ] ?? null ; if ( app ( ) -> getProvider ( NovaServiceProvider :: class ) ) { return $ flexible ; } return $ this -> toFlexible ( $ flexible ? : null , $ layoutMapping ) ; }
Parse a Flexible Content attribute
 @param string $attribute
 @param array  $layoutMapping
 @return Whitecube\NovaFlexibleContent\Layouts\Collection
Parse a Flexible Content attribute @param string $attribute @param array $layoutMapping @return Whitecube \ NovaFlexibleContent \ Layouts \ Collection