# fluent-boards/1.21/app/Models/TaskMeta.php

FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration, version 1.21. 32 lines.

- Page: https://pluginprobe.com/plugins/fluent-boards/1.21/code/app/Models/TaskMeta.php
- Raw: https://pluginprobe.com/plugins/fluent-boards/1.21/raw/app/Models/TaskMeta.php
- Modified: 2024-05-31T06:41:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-boards/1.21/code/app/Models/TaskMeta.php#L10-L20`.

```php
<?php

namespace FluentBoards\App\Models;

class TaskMeta extends Model
{
    protected $table = 'fbs_task_metas';

    protected $guarded = ['id'];

    protected $fillable = [
        'task_id',
        'key',
        'value'
    ];

    public function task()
    {
        return $this->belongsTo(Task::class, 'task_id', 'id');
    }

    public function setValueAttribute($value)
    {
        $this->attributes['value'] = \maybe_serialize($value);
    }

    public function getValueAttribute($value)
    {
        return \maybe_unserialize($value);
    }
}

```
