mapper-laravel maintained by type-lang
Description
Laravel integration of the TypeLang mapper
Last update
2026/11/22 18:41
(dev-master)
License
Downloads
0
Tags
Laravel
Registers the mapper in a Laravel application: a default mapper and named
mappers extending its settings, php artisan vendor:publish --tag=type-lang-mapper-config publishes the config.
// config/type-lang-mapper.php
return [
'naming' => 'snake_case',
'types' => [App\Mapper\UuidTypeBuilder::class],
'mappers' => [
'api' => [
'strict' => true,
'types' => [App\Mapper\MoneyTypeBuilder::class],
],
],
];
The default mapper is type-lang.mapper (bound to MapperInterface), a
named one is type-lang.mapper.api.