public function fields(Request $request)
    {
        return array_merge([
            Sortable::make('Sort', 'id'),
            MorphTo::make('Repeatable')->types(array_wrap(static::getMorphToArray()))->onlyOnDetail(),
            Text::make('Name'),
            Polymorphic::make('Type')->types($request, $this->types($request))->hideTypeWhenUpdating(),
            $this->morphRepeaters($request),
        ], $this->extraInfo($request));
    }
public function fields(Request $request)
    {
        return array_merge([
            Sortable::make('Sort', 'id'),
            MorphTo::make('Repeatable')->types(array_wrap(static::getMorphToArray()))->onlyOnDetail(),
            Text::make('Name'),
            Polymorphic::make('Type')->types($request, $this->types($request))->hideTypeWhenUpdating(),
            $this->morphRepeaters($request),
        ], $this->extraInfo($request));
    }
public function fields ( Request $ request ) { return array_merge ( [ Sortable :: make ( 'Sort' , 'id' ) , MorphTo :: make ( 'Repeatable' ) -> types ( array_wrap ( static :: getMorphToArray ( ) ) ) -> onlyOnDetail ( ) , Text :: make ( 'Name' ) , Polymorphic :: make ( 'Type' ) -> types ( $ request , $ this -> types ( $ request ) ) -> hideTypeWhenUpdating ( ) , $ this -> morphRepeaters ( $ request ) , ] , $ this -> extraInfo ( $ request ) ) ; }
Get the fields displayed by the resource.

@param  \Illuminate\Http\Request  $request
@return array
Get the fields displayed by the resource .