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

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

- Page: https://pluginprobe.com/plugins/fluent-boards/1.21/code/app/Models/Relation.php
- Raw: https://pluginprobe.com/plugins/fluent-boards/1.21/raw/app/Models/Relation.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/Relation.php#L10-L20`.

```php
<?php

namespace FluentBoards\App\Models;

class Relation extends Model
{
    protected $table = 'fbs_relations';

    protected $guarded = ['id'];

    protected $hidden = [
        'created_at',
        'updated_at',
    ];

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

    public function getSettingsAttribute($settings)
    {
        return \maybe_unserialize($settings);
    }

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

    public function getPreferencesAttribute($preferences)
    {
        return \maybe_unserialize($preferences);
    }
}

```
