File: /var/www/javago-portal-updates/app/Models/CafeTiming.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Permission\Traits\HasRoles;
class CafeTiming extends Model
{
use HasFactory, HasUuids, HasRoles;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'cafe_timings';
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = ['cafe'];
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
protected $fillable = [
// 'uuid',
'day',
'open_time',
'close_time',
'cafe_id',
'is_active',
'created_at',
'updated_at',
];
public function cafe()
{
return $this->belongsTo(Cafe::class);
}
}