Skip to content

UsesFrenchPostalCodeTable ​

php
trait StanislasPoisson\FrenchPostalCode\Laravel\Models\Concerns\UsesFrenchPostalCodeTable

What the models of the package share: the table and the connection come from the configuration, the identifier comes from the data, and a row is valid until its valid_to date.

Source: src/Laravel/Models/Concerns/UsesFrenchPostalCodeTable.php

Methods ​

baseTable() ​

php
public static function baseTable(): string

The table without its prefix.

getConnectionName() ​

php
public function getConnectionName(): string

getTable() ​

php
public function getTable(): string

scopeCurrent() ​

php
protected function scopeCurrent(Builder $builder): void

Only the rows that are currently valid.

Documentation of next , built from 068662f on main by pipeline #37508150537 on 2026-10-06.