<?php
namespace App\Models\Gallery;

use Illuminate\Database\Eloquent\Model;

class GallerySection extends Model
{
    const LAYOUT_TYPES = ['grid', 'masonry', 'justified'];
    const LAYOUT_WIDTHS = ['min', 'medium', 'max'];
    const IMAGE_SIZES = ['small', 'medium', 'large'];
    const IMAGE_SPACINGS = ['none', 'thin', 'medium', 'thick', 'max'];

    protected $casts = [
        'settings' => 'array'
    ];

    public function gallery()
    {
        return $this->belongsTo('App\Models\Gallery\Gallery');
    }

    public function galleryItems()
    {
        return $this->hasMany('App\Models\Gallery\GalleryItem');
    }
}
