PixelPlacerBot/app/Models/PaletteColor.php

19 lines
339 B
PHP
Raw Permalink Normal View History

2024-07-27 15:40:35 -04:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PaletteColor extends Model
{
use HasFactory;
protected $fillable = ['palette_id', 'name', 'hex_value'];
public function palette()
{
return $this->belongsTo(Palette::class);
}
}