View file app/Models/Spam.php

File size: 593B
<?php

namespace App\Models;

class Spam extends BaseModel
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'spam';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    protected $guarded = [];

    /**
     * Возвращает связанные сообщения
     */
    public function relate()
    {
        return $this->morphTo('relate');
    }
}