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 5.0.2 , built from 38dcb21 on 5.0.2 by pipeline #45218049158 on 2026-11-23.