Appearance
UsesFrenchPostalCodeTable
php
trait StanislasPoisson\FrenchPostalCode\Laravel\Models\Concerns\UsesFrenchPostalCodeTableWhat 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(): stringThe table without its prefix.
getConnectionName()
php
public function getConnectionName(): stringgetTable()
php
public function getTable(): stringscopeCurrent()
php
protected function scopeCurrent(Builder $builder): voidOnly the rows that are currently valid.