MINI MINI MANI MO

Path : /var/www/html/sistemas/saplxi/app/Models/
File Upload :
Current File : /var/www/html/sistemas/saplxi/app/Models/CddComunicado61.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Searchable\Searchable;
use Spatie\Searchable\SearchResult;
use Illuminate\Database\Eloquent\SoftDeletes;

class CddComunicado61 extends Model implements Searchable
{
    use HasFactory, SoftDeletes;

    protected $table = "cdd_comunicados";
    protected $guarded = ["id","created_at","updated_at","deleted_at"];
    protected $attributes = [
        "bullet3" => "''",
    ];

    public function fotos()
    {
        return $this->hasMany(CddFoto::class, "comunicado", "comunicado");
    }

    public function getSearchResult(): SearchResult
    {
        return new SearchResult($this, $this->titulo, route('index', $this->id));
    }
}

OHA YOOOO