32 lines
678 B
PHP
32 lines
678 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Magasin extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'name', 'address', 'postcode', 'city', 'phone',
|
|
'latitude', 'longitude',
|
|
'gmaps_placeid', 'gmaps_embed_href', 'gmaps_link_href',
|
|
];
|
|
|
|
public function timeslotSettings()
|
|
{
|
|
return $this->hasMany(TimeslotSetting::class);
|
|
}
|
|
|
|
public function collecteExceptions()
|
|
{
|
|
return $this->hasMany(CollecteException::class);
|
|
}
|
|
|
|
public function timeslots()
|
|
{
|
|
return $this->hasMany(Timeslot::class);
|
|
}
|
|
}
|