From 258dfd21f8a320e2a85675986a0bb987f53e1e9c Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Mon, 6 Jul 2020 16:08:54 +0200 Subject: [PATCH] Add getCustomColumns() --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 434e7f3..b56a6ba 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,15 @@ class MyModel extends Model use VirtualColumn; public $guarded = []; + + public static function getCustomColumns(): array + { + return [ + 'id', + 'custom1', + 'custom2', + ]; + } } ```