sarga/packages/Webkul/BookingProduct/src/Models/BookingProductDefaultSlot.php

25 lines
747 B
PHP
Raw Normal View History

2020-02-14 06:10:12 +00:00
<?php
namespace Webkul\BookingProduct\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\BookingProduct\Contracts\BookingProductDefaultSlot as BookingProductDefaultSlotContract;
class BookingProductDefaultSlot extends Model implements BookingProductDefaultSlotContract
{
protected $table = 'booking_product_default_slots';
public $timestamps = false;
protected $casts = ['slots' => 'array'];
protected $fillable = ['booking_type', 'duration', 'break_time', 'available_from', 'available_to', 'slots', 'booking_product_id'];
/**
* Get the product that owns the attribute value.
*/
public function booking_product()
{
return $this->belongsTo(BookingProductProxy::modelClass());
}
}