Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel Add a static label/text above panel

public function fields(Request $request)
        {
            return [
                ID::make(__('ID'), 'id')->sortable(),
    
                new Panel('Read more section', [                
    
                    JSON::make('Read more section', [
                        Text::make('Title')->rules(['max:255']),
                        Text::make('Description'),
                    ])->data // <-- added data.
                ]),
                
               
            ];
        }
 
PREVIOUS NEXT
Tagged: #laravel #Add #static #panel
ADD COMMENT
Topic
Name
5+5 =