<?php

namespace App\Models;

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

class Recipe extends Model
{
    use HasFactory;

    protected $fillable = [
        'slug',
        'title',
        'description',
        'image_url',
        'ingredients',
        'steps',
        'time_minutes',
        'difficulty',
        'tags',
        'views_count',
    ];

    protected $casts = [
        'ingredients' => 'array',
        'steps' => 'array',
        'tags' => 'array',
    ];
}
