{"record":{"id":"15e8740c7ce0ee0e","repo":"krayin/laravel-crm","slug":"datagridclass-must-extend-the-webkul-datagri","errorCode":null,"errorMessage":"'{$datagridClass}' must extend the 'Webkul\\DataGrid\\DataGrid' class.","messagePattern":"'(.+?)' must extend the 'Webkul\\\\DataGrid\\\\DataGrid' class\\.","errorType":"exception","errorClass":"InvalidDataGridException","httpStatus":null,"severity":"error","filePath":"packages/Webkul/DataGrid/src/Http/helpers.php","lineNumber":13,"sourceCode":"<?php\n\nuse Webkul\\DataGrid\\DataGrid;\nuse Webkul\\DataGrid\\Exceptions\\InvalidDataGridException;\n\nif (! function_exists('datagrid')) {\n    /**\n     * Datagrid helper.\n     */\n    function datagrid(string $datagridClass): DataGrid\n    {\n        if (! is_subclass_of($datagridClass, DataGrid::class)) {\n            throw new InvalidDataGridException(\"'{$datagridClass}' must extend the '\".DataGrid::class.\"' class.\");\n        }\n\n        return app($datagridClass);\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":19,"githubUrl":"https://github.com/krayin/laravel-crm/blob/13d6988cda8d69ece45ee1890effc90a7f21cdc1/packages/Webkul/DataGrid/src/Http/helpers.php#L1-L19","documentation":"Error \"'{$datagridClass}' must extend the 'Webkul\\DataGrid\\DataGrid' class.\" thrown in krayin/laravel-crm.","triggerScenarios":"Thrown at packages/Webkul/DataGrid/src/Http/helpers.php:13 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13d6988cda8d69ece45ee1890effc90a7f21cdc1","analyzedAt":"2026-08-17T00:58:29.000Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}