Skip to the content.

Laravel GridView Formatters

Formatters allows to format column’s rendered value. It applies AFTER rendering which means that you can apply it to any class of column.

[
    // grid config
    'columns' => [
        [
            'title' => 'Simple column',
            'value' => 'user_email',
            'formatters' => ['email'],
        ]
    ],
];

A list of current formatters: