You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-20Lines changed: 0 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,26 +271,6 @@ add support for creating a new dedicated class instead of using local scopes in
271
271
272
272
If for some reason it's undesired to have them generated (one for each column), you can disable this via config `write_model_external_builder_methods` and setting it to `false`.
273
273
274
-
#### Unsupported or custom database types
275
-
276
-
Common column types (e.g. varchar, integer) are correctly mapped to PHP types (`string`, `int`).
277
-
278
-
But sometimes you may want to use custom column types in your database like `geography`, `jsonb`, `citext`, `bit`, etc. which may throw an "Unknown database type"-Exception.
279
-
280
-
For those special cases, you can map them via the config `custom_db_types`. Example:
281
-
```php
282
-
'custom_db_types' => [
283
-
'mysql' => [
284
-
'geography' => 'array',
285
-
'point' => 'array',
286
-
],
287
-
'postgresql' => [
288
-
'jsonb' => 'string',
289
-
'_int4' => 'array',
290
-
],
291
-
],
292
-
```
293
-
294
274
#### Custom Relationship Types
295
275
296
276
If you are using relationships not built into Laravel you will need to specify the name and returning class in the config to get proper generation.
Copy file name to clipboardExpand all lines: tests/Console/ModelsCommand/DoesNotGeneratePhpdocWithExternalEloquentBuilder/__snapshots__/Test__test__1.php
0 commit comments