mirror of
https://github.com/archtechx/virtualcolumn.git
synced 2025-12-12 08:04:04 +00:00
Add getCustomColumns()
This commit is contained in:
parent
e41770bf6b
commit
258dfd21f8
1 changed files with 9 additions and 0 deletions
|
|
@ -20,6 +20,15 @@ class MyModel extends Model
|
|||
use VirtualColumn;
|
||||
|
||||
public $guarded = [];
|
||||
|
||||
public static function getCustomColumns(): array
|
||||
{
|
||||
return [
|
||||
'id',
|
||||
'custom1',
|
||||
'custom2',
|
||||
];
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue