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

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

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

```php
<?php

namespace FluentBoards\App\Models;

use FluentBoards\Framework\Database\Orm\Relations\BelongsTo;

class Team extends Model
{
    protected $table = 'fbs_teams';

    protected $guarded = ['id'];

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

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

    /**
     * @return BelongsTo
     */
    public function parent()
    {
        return $this->belongsTo(Team::class, 'parent_id');
    }
}
```
