Skip to content

Commit

Permalink
Update modeltyper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrtonandino committed Nov 29, 2024
1 parent cf97f2e commit 17e92fd
Showing 1 changed file with 117 additions and 0 deletions.
117 changes: 117 additions & 0 deletions config/modeltyper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,123 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Generate typescript interfaces in a global namespace named models
|--------------------------------------------------------------------------
|
| Custom mappings allow you to add support for types that are considered
| unknown or override existing mappings.
|
| You can also add mappings for your Custom Casts.
|
| For example:
| 'App\Casts\YourCustomCast' => 'string|null',
| 'binary' => 'Blob',
| 'bool' => 'boolean',
| 'point' => 'CustomPointInterface',
| 'year' => 'string',
*/
'global' => false,

/*
|--------------------------------------------------------------------------
| Should echo the definitions into a file
|--------------------------------------------------------------------------
*/
'output-file' => false,

/*
|--------------------------------------------------------------------------
| Output the result as json
|--------------------------------------------------------------------------
*/
'output-file-path' => './resources/js/types/models.d.ts',

/*
|--------------------------------------------------------------------------
| Output the result as json
|--------------------------------------------------------------------------
*/
'json' => false,

/*
|--------------------------------------------------------------------------
| Use typescript enums instead of object literals
|--------------------------------------------------------------------------
*/
'use-enums' => false,

/*
|--------------------------------------------------------------------------
| Output model plurals
|--------------------------------------------------------------------------
*/
'plurals' => false,

/*
|--------------------------------------------------------------------------
| Do not include relations
|--------------------------------------------------------------------------
*/
'no-relations' => false,

/*
|--------------------------------------------------------------------------
| Make relations optional fields on the model type
|--------------------------------------------------------------------------
*/
'optional-relations' => false,

/*
|--------------------------------------------------------------------------
| Do not include hidden model attributes
|--------------------------------------------------------------------------
*/
'no-hidden' => false,

/*
|--------------------------------------------------------------------------
| Output timestamps as a Date object type
|--------------------------------------------------------------------------
*/
'timestamps-date' => false,

/*
|--------------------------------------------------------------------------
| Output nullable attributes as optional fields
|--------------------------------------------------------------------------
*/
'optional-nullables' => false,

/*
|--------------------------------------------------------------------------
| Output api.MetApi interfaces
|--------------------------------------------------------------------------
*/
'api-resources' => false,

/*
|--------------------------------------------------------------------------
| Attempt to resolve abstract models
|--------------------------------------------------------------------------
*/
'resolve-abstract' => false,

/*
|--------------------------------------------------------------------------
| Output model fillables
|--------------------------------------------------------------------------
*/
'fillables' => false,

/*
|--------------------------------------------------------------------------
| fillable-suffix
|--------------------------------------------------------------------------
*/
'fillable-suffix' => '',

/*
|--------------------------------------------------------------------------
| Override default mappings or add new ones
Expand Down

0 comments on commit 17e92fd

Please sign in to comment.