You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> {tip} If you are building a DataTable for your `User` model which has the attributes `first_name` and `last_name`, you can directly access these properties in the blade template with `{{ $first_name }}` and `{{ $last_name }}`. You can also use `{{ $model->first_name }}` or `{{ $model->last_name }}` respectively, which is helpful if you need to call a method on the model like `{{ $model->getFullName() }}`.
Then create your view on`resources/views/users/datatables/intro.blade.php`.
56
+
After creating the view in`resources/views/users/datatables/intro.blade.php`, you can then access all the properties of the DataTable row directly in your view:
55
57
```php
56
58
Hi {{ $name }}!
57
59
```
58
60
61
+
> {tip} Similar to columns defined by an inline blade template, you can use `{{ $model->getFullName() }}` in views if you need access to the full model in order to call a method on it or similar.
62
+
59
63
<aname="order"></a>
60
64
## Add Column with specific order
61
65
62
-
> {tip} Just pass the column order as the third argument of`addColumn` api.
66
+
You can use a specific order for a column by passing the order as third argument to`addColumn`:
0 commit comments