2021-04-21 17:50:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Magasin extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
2021-04-22 15:21:09 +02:00
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'name', 'address', 'postcode', 'city', 'phone',
|
|
|
|
|
'latitude', 'longitude',
|
|
|
|
|
'gmaps_placeid', 'gmaps_embed_href', 'gmaps_link_href',
|
|
|
|
|
];
|
2021-04-22 18:18:52 +02:00
|
|
|
|
|
|
|
|
public function timeslotSettings() {
|
|
|
|
|
return $this->hasMany(TimeslotSetting::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function collecteExceptions() {
|
|
|
|
|
return $this->hasMany(CollecteException::class);
|
|
|
|
|
}
|
2021-04-23 11:59:35 +02:00
|
|
|
|
|
|
|
|
public function timeslots() {
|
|
|
|
|
return $this->hasMany(Timeslot::class);
|
|
|
|
|
}
|
2021-04-21 17:50:57 +02:00
|
|
|
}
|