1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-12 06:44:05 +00:00

Update VirtualColumn.php

overridden function that checks whether a column is guardable
This commit is contained in:
b09v 2023-10-02 10:07:47 +02:00 committed by GitHub
parent 0b108903b5
commit e13abfb64b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,4 +155,15 @@ trait VirtualColumn
return static::getDataColumn() . '->' . $column;
}
/**
* Determine if the given column is a valid, guardable column.
*
* @param string $key
* @return bool
*/
protected function isGuardableColumn($key)
{
return true;
}
}