Skip to content

Commit 9f383c0

Browse files
committed
Clarify rowView docs
1 parent 1531a8c commit 9f383c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,14 @@ Column::make('Name')
110110

111111
If you would like full control over your rows without using the Column formatter, than you can define a `rowView` and return the string to the view to render the rows. The view will be passed the current $row.
112112

113+
The string is just passed to a regular Laravel `@include()` so it starts at the resources/views directory which you do not need to specify.
114+
113115
**row.blade.php**
114116

115117
```php
116118
public function rowView(): string
117119
{
120+
// Becomes /resources/views/location/to/my/row.blade.php
118121
return 'location.to.my.row.view';
119122
}
120123
```

0 commit comments

Comments
 (0)