F
Filament15mo ago
José

in admin show the value of a DB column not in a field

Hello! what about if in admin panel I want to only show the value of a DB column not in a field, is with this https://filamentphp.com/docs/2.x/forms/fields#view ? only for see the value....I tried what you explained in that link (attached screenshot) only showing <p>hello</p> but it doesn't show
Filament
Fields - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
4 Replies
Filament
Filament15mo ago
We're confused about what you mean by this question. Please read the #✅┊rules and reply to this message to provide more information about your use case.
José
José15mo ago
ok thanks, I want to show a value from DB in edit view, but not in a field...
LeandroFerreira
LeandroFerreira15mo ago
ViewField::make('column')->view('view-field')
ViewField::make('column')->view('view-field')
<!-- resources/views/view-field.blade.php -->
<p>Hello {{ $getState() }}</p>
<!-- resources/views/view-field.blade.php -->
<p>Hello {{ $getState() }}</p>
?
Dennis Koch
Dennis Koch15mo ago
Maybe Placeholder::make('column')?