ldc-boutique-cnc/app/Models/Timeslot.php

26 lines
428 B
PHP
Raw Permalink Normal View History

2021-03-29 15:10:07 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Timeslot extends Model
{
use HasFactory;
protected $fillable = [
'order_id', 'magasin_id'
2021-03-29 15:10:07 +02:00
];
public function order()
{
return $this->belongsTo(Order::class);
}
public function magasin()
{
return $this->belongsTo(Magasin::class);
}
2021-03-29 15:10:07 +02:00
}