Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Injecting $record and using ->when - Filament
F
Filament
•
15mo ago
•
16 replies
emil
Injecting $record and using ->when
$record becomes an instance of TextColumn instead of Model when using the
-
>when condition
.
Is this expected behaviour
?
T
e
x
t
C
o
l
u
m
n
:
:make
(
'state
'
)
-
>when
(fn
(
$record
)
=
> dd
(
$record
)
)
Solution
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Injecting model/record into a chart
F
Filament / ❓┊help
15mo ago
create record when using tenancy
F
Filament / ❓┊help
3y ago
Injecting content just after the body tag when using filament
F
Filament / ❓┊help
11mo ago
previous and next record inside form using actions
F
Filament / ❓┊help
3y ago