-
Notifications
You must be signed in to change notification settings - Fork 10
/
multiplex.php
48 lines (44 loc) · 1.7 KB
/
multiplex.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
return [
/**
* Model to use for Meta.
*/
'model' => Kolossal\Multiplex\Meta::class,
/**
* Determine wethere packages migrations should be loaded automatically.
* Disable this if you want to create your own migrations based on the ones
* located in `database/migrations`.
*/
'migrations' => true,
/**
* The type of primary key your models using the `HasMeta` trait are using.
* Must be one of `integer`, `uuid` or `ulid`.
* ATTENTION: This must be changed before running the database migrations.
*/
'morph_type' => env('MULTIPLEX_MORPH_TYPE', 'integer'),
/**
* List of handlers for recognized data types.
*
* Handlers will be evaluated in order, so a value will be handled
* by the first appropriate handler in the list.
*
* @copyright Plank Multimedia Inc.
*
* @link https://github.com/plank/laravel-metable
*/
'datatypes' => [
Kolossal\Multiplex\DataType\BooleanHandler::class,
Kolossal\Multiplex\DataType\NullHandler::class,
Kolossal\Multiplex\DataType\IntegerHandler::class,
Kolossal\Multiplex\DataType\FloatHandler::class,
Kolossal\Multiplex\DataType\StringHandler::class,
Kolossal\Multiplex\DataType\DateTimeHandler::class,
Kolossal\Multiplex\DataType\DateHandler::class,
Kolossal\Multiplex\DataType\ArrayHandler::class,
Kolossal\Multiplex\DataType\EnumHandler::class,
Kolossal\Multiplex\DataType\ModelHandler::class,
Kolossal\Multiplex\DataType\ModelCollectionHandler::class,
Kolossal\Multiplex\DataType\SerializableHandler::class,
Kolossal\Multiplex\DataType\ObjectHandler::class,
],
];