<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Shift extends Model { protected $fillable=['name','user_id','start_time','end_time','opening_cash','closing_cash','status']; protected $casts=['start_time'=>'datetime','end_time'=>'datetime']; public function user(){return $this->belongsTo(User::class);} }
