<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Team extends Model
{
    use HasFactory;

    protected $table = 'teams';

    protected $fillable = [
        'name',
        'designation',
        'image',
        'socials',
    ];

    protected $casts = [
        'socials' => 'array',
    ];

    public function getSearchAttribute()
    {
        return [
            'name',
            'designation',
        ];
    }
}
