<?php

namespace App\Models;

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

class Photo extends Model
{
    use SoftDeletes;
    use HasFactory;
    protected $fillable = [
        'album_id',
        'photo_path',
        'caption',
    ];


    public function album()
    {
        return $this->belongsTo(Album::class);
    }
}
