Skip to content

Commit

Permalink
Merge pull request #10 from Laravel-Backpack/handling-empty-datasets
Browse files Browse the repository at this point in the history
[BUG FIX] Fix handle of empty datasets
  • Loading branch information
pxpm authored Apr 2, 2024
2 parents 0f8cd5d + 9c1f517 commit d3deb7e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Models/TranslationLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ class TranslationLine extends TranslationLineOriginal
'database' => 'boolean',
];

/**
* The model table schema.
* Used to handle empty datasets
*/
protected $schema = [
'id' => 'string',
'id_database' => 'integer',
'database' => 'boolean',
'group' => 'string',
'key' => 'string',
'text' => 'string',
'created_at' => 'date',
];

/**
* Group key accessor.
*/
Expand Down

0 comments on commit d3deb7e

Please sign in to comment.