<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Like extends Model
{
    protected $fillable = [
        'user_id',
        'likeable_id',
        'likeable_type',
        'is_dislike',
    ];

    /**
     * The part below is for this model relationships
     */
    public function likeable()
    {
        return $this->morphTo();
    }
    /**
     * The above is for this model relationships
     */
}
