Skip to content

Commit

Permalink
Merge pull request #98 from maiga-soluciones/master
Browse files Browse the repository at this point in the history
Fix problem with missing method on Laravel 11 for datatable generation
  • Loading branch information
sebastienheyd authored Aug 27, 2024
2 parents 42ed387 + 846d83a commit 12e9a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Datatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function generateColumnsForModel($model)

foreach ($fields as $field) {
if (! $this->option('nodb')) {
$type = $connection->getDoctrineColumn($model->getTable(), $field)->getType()->getName();
$type = $connection->getSchemaBuilder()->getColumnType($model->getTable(), $field);
} else {
$type = preg_match('#_at$#', $field) ? 'datetime' : 'default';
}
Expand Down

0 comments on commit 12e9a17

Please sign in to comment.