Looking to hire Laravel developers? Try LaraJobs

mapper-laravel maintained by type-lang

Description
Laravel integration of the TypeLang mapper
Last update
2026/11/22 18:41 (dev-master)
License
Links
Downloads
0

Comments
comments powered by Disqus

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.