*/ protected $fillable = [ 'civility', 'lastname', 'firstname', 'address', 'postcode', 'city', 'phone' ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'civility' => ContactFormCivility::class ]; // * RELATIONSHIPS /** * Get the order that are assigned this delivery address. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function order(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Order::class); } }