<?php

namespace App\Models;

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

class PortfolioProject extends Model
{
    use HasFactory;

    protected $guarded = [];

    public function skills()
    {
        return $this->morphToMany(Skill::class, 'skillable');
    }

    public function portfolioable()
    {
        return $this->morphTo();
    }

    public function images()
    {
        return $this->hasMany(PortfolioImage::class,);
    }
}
