krayin/laravel-crm · error · InvalidDataGridException

'{$datagridClass}' must extend the 'Webkul\DataGrid\DataGrid

Error message

'{$datagridClass}' must extend the 'Webkul\DataGrid\DataGrid' class.

What it means

Error "'{$datagridClass}' must extend the 'Webkul\DataGrid\DataGrid' class." thrown in krayin/laravel-crm.

Source

Thrown at packages/Webkul/DataGrid/src/Http/helpers.php:13

<?php

use Webkul\DataGrid\DataGrid;
use Webkul\DataGrid\Exceptions\InvalidDataGridException;

if (! function_exists('datagrid')) {
    /**
     * Datagrid helper.
     */
    function datagrid(string $datagridClass): DataGrid
    {
        if (! is_subclass_of($datagridClass, DataGrid::class)) {
            throw new InvalidDataGridException("'{$datagridClass}' must extend the '".DataGrid::class."' class.");
        }

        return app($datagridClass);
    }
}

View on GitHub (pinned to 13d6988cda)

When it happens

Trigger: Thrown at packages/Webkul/DataGrid/src/Http/helpers.php:13 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of krayin/laravel-crm@13d6988cda (2026-08-17). Data as JSON: /api/errors/15e8740c7ce0ee0e. Report an issue: GitHub.