Skip to content

Passing another variable on Cloumn use view #1315

Closed Answered by lrljoe
echoskydev asked this question in Q&A
Discussion options

You must be logged in to vote

You can access variables declared elsewhere in the component, from your blade with the standard
{{ $this->variable }}

Look at the format() approach if you want to pass multiple variables into a view

Column::make('Name')
    ->format(
        fn($value, $row, Column $column) => view('my.custom.view')->withValue($value)
    ),

Replies: 1 comment 1 reply

Comment options

lrljoe
Aug 25, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@echoskydev
Comment options

Answer selected by echoskydev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants