1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-12 21:54:04 +00:00

Add @mixin annotation

This commit is contained in:
Samuel Štancl 2022-11-08 12:35:18 +01:00 committed by GitHub
parent ab3f943990
commit 46c590e240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,8 @@ namespace Stancl\VirtualColumn;
* This trait lets you add a "data" column functionality to any Eloquent model.
* It serializes attributes which don't exist as columns on the model's table
* into a JSON column named data (customizable by overriding getDataColumn).
*
* @mixin \Illuminate\Database\Eloquent\Model
*/
trait VirtualColumn
{