<?php12return [34/*5|--------------------------------------------------------------------------6| Filename7|--------------------------------------------------------------------------8|9| The default filename.10|11*/1213'filename' => '_ide_helper.php',1415/*16|--------------------------------------------------------------------------17| Models filename18|--------------------------------------------------------------------------19|20| The default filename for the models helper file.21|22*/2324'models_filename' => '_ide_helper_models.php',2526/*27|--------------------------------------------------------------------------28| PhpStorm meta filename29|--------------------------------------------------------------------------30|31| PhpStorm also supports the directory `.phpstorm.meta.php/` with arbitrary32| files in it, should you need additional files for your project; e.g.33| `.phpstorm.meta.php/laravel_ide_Helper.php'.34|35*/36'meta_filename' => '.phpstorm.meta.php',3738/*39|--------------------------------------------------------------------------40| Fluent helpers41|--------------------------------------------------------------------------42|43| Set to true to generate commonly used Fluent methods.44|45*/4647'include_fluent' => false,4849/*50|--------------------------------------------------------------------------51| Factory builders52|--------------------------------------------------------------------------53|54| Set to true to generate factory generators for better factory()55| method auto-completion.56|57| Deprecated for Laravel 8 or latest.58|59*/6061'include_factory_builders' => false,6263/*64|--------------------------------------------------------------------------65| Write model magic methods66|--------------------------------------------------------------------------67|68| Set to false to disable write magic methods of model.69|70*/7172'write_model_magic_where' => false,7374/*75|--------------------------------------------------------------------------76| Write model external Eloquent builder methods77|--------------------------------------------------------------------------78|79| Set to false to disable write external Eloquent builder methods.80|81*/8283'write_model_external_builder_methods' => true,8485/*86|--------------------------------------------------------------------------87| Write model relation count and exists properties88|--------------------------------------------------------------------------89|90| Set to false to disable writing of relation count and exists properties91| to model DocBlocks.92|93*/9495'write_model_relation_count_properties' => false,96'write_model_relation_exists_properties' => false,9798/*99|--------------------------------------------------------------------------100| Write Eloquent model mixins101|--------------------------------------------------------------------------102|103| This will add the necessary DocBlock mixins to the model class104| contained in the Laravel framework. This helps the IDE with105| auto-completion.106|107| Please be aware that this setting changes a file within the /vendor directory.108|109*/110111'write_eloquent_model_mixins' => false,112113/*114|--------------------------------------------------------------------------115| Helper files to include116|--------------------------------------------------------------------------117|118| Include helper files. By default not included, but can be toggled with the119| -- helpers (-H) option. Extra helper files can be included.120|121*/122123'include_helpers' => false,124125'helper_files' => [126base_path() . '/vendor/laravel/framework/src/Illuminate/Support/helpers.php',127base_path() . '/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php',128],129130/*131|--------------------------------------------------------------------------132| Model locations to include133|--------------------------------------------------------------------------134|135| Define in which directories the ide-helper:models command should look136| for models.137|138| glob patterns are supported to easier reach models in sub-directories,139| e.g. `app/Services/* /Models` (without the space).140|141*/142143'model_locations' => [144'app/Models',145],146147/*148|--------------------------------------------------------------------------149| Models to ignore150|--------------------------------------------------------------------------151|152| Define which models should be ignored.153|154*/155156'ignored_models' => [157// App\MyModel::class,158],159160/*161|--------------------------------------------------------------------------162| Models hooks163|--------------------------------------------------------------------------164|165| Define which hook classes you want to run for models to add custom information.166|167| Hooks should implement Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface.168|169*/170171'model_hooks' => [172// App\Support\IdeHelper\MyModelHook::class173],174175/*176|--------------------------------------------------------------------------177| Extra classes178|--------------------------------------------------------------------------179|180| These implementations are not really extended, but called with magic functions.181|182*/183184'extra' => [185'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'],186'Session' => ['Illuminate\Session\Store'],187],188189'magic' => [],190191/*192|--------------------------------------------------------------------------193| Interface implementations194|--------------------------------------------------------------------------195|196| These interfaces will be replaced with the implementing class. Some interfaces197| are detected by the helpers, others can be listed below.198|199*/200201'interfaces' => [202// App\MyInterface::class => App\MyImplementation::class,203],204205/*206|--------------------------------------------------------------------------207| Support for camel cased models208|--------------------------------------------------------------------------209|210| There are some Laravel packages (such as Eloquence) that allow for accessing211| Eloquent model properties via camel case, instead of snake case.212|213| Enabling this option will support these packages by saving all model214| properties as camel case, instead of snake case.215|216| For example, normally you would see this:217|218| * @property \Illuminate\Support\Carbon $created_at219| * @property \Illuminate\Support\Carbon $updated_at220|221| With this enabled, the properties will be this:222|223| * @property \Illuminate\Support\Carbon $createdAt224| * @property \Illuminate\Support\Carbon $updatedAt225|226| Note, it is currently an all-or-nothing option.227|228*/229'model_camel_case_properties' => false,230231/*232|--------------------------------------------------------------------------233| Property casts234|--------------------------------------------------------------------------235|236| Cast the given "real type" to the given "type".237|238*/239'type_overrides' => [240'integer' => 'int',241'boolean' => 'bool',242],243244/*245|--------------------------------------------------------------------------246| Include DocBlocks from classes247|--------------------------------------------------------------------------248|249| Include DocBlocks from classes to allow additional code inspection for250| magic methods and properties.251|252*/253'include_class_docblocks' => false,254255/*256|--------------------------------------------------------------------------257| Force FQN usage258|--------------------------------------------------------------------------259|260| Use the fully qualified (class) name in DocBlocks,261| even if the class exists in the same namespace262| or there is an import (use className) of the class.263|264*/265'force_fqn' => true,266267/*268|--------------------------------------------------------------------------269| Use generics syntax270|--------------------------------------------------------------------------271|272| Use generics syntax within DocBlocks,273| e.g. `Collection<User>` instead of `Collection|User[]`.274|275*/276'use_generics_annotations' => true,277278/*279|--------------------------------------------------------------------------280| Default return types for macros281|--------------------------------------------------------------------------282|283| Define default return types for macros without explicit return types.284| e.g. `\Illuminate\Database\Query\Builder::class => 'static'`,285| `\Illuminate\Support\Str::class => 'string'`286|287*/288'macro_default_return_types' => [289Illuminate\Http\Client\Factory::class => Illuminate\Http\Client\PendingRequest::class,290],291292/*293|--------------------------------------------------------------------------294| Additional relation types295|--------------------------------------------------------------------------296|297| Sometimes it's needed to create custom relation types. The key of the array298| is the relationship method name. The value of the array is the fully-qualified299| class name of the relationship, e.g. `'relationName' => RelationShipClass::class`.300|301*/302'additional_relation_types' => [],303304/*305|--------------------------------------------------------------------------306| Additional relation return types307|--------------------------------------------------------------------------308|309| When using custom relation types its possible for the class name to not contain310| the proper return type of the relation. The key of the array is the relationship311| method name. The value of the array is the return type of the relation ('many'312| or 'morphTo').313| e.g. `'relationName' => 'many'`.314|315*/316'additional_relation_return_types' => [],317318/*319|--------------------------------------------------------------------------320| Enforce nullable Eloquent relationships on not null columns321|--------------------------------------------------------------------------322|323| When set to true (default), this option enforces nullable Eloquent relationships.324| However, in cases where the application logic ensures the presence of related325| records it may be desirable to set this option to false to avoid unwanted null warnings.326|327| Default: true328| A not null column with no foreign key constraint will have a "nullable" relationship.329| * @property int $not_null_column_with_no_foreign_key_constraint330| * @property-read BelongsToVariation|null $notNullColumnWithNoForeignKeyConstraint331|332| Option: false333| A not null column with no foreign key constraint will have a "not nullable" relationship.334| * @property int $not_null_column_with_no_foreign_key_constraint335| * @property-read BelongsToVariation $notNullColumnWithNoForeignKeyConstraint336|337*/338339'enforce_nullable_relationships' => true,340341/*342|--------------------------------------------------------------------------343| Run artisan commands after migrations to generate model helpers344|--------------------------------------------------------------------------345|346| The specified commands should run after migrations are finished running.347|348*/349'post_migrate' => [350// 'ide-helper:models --nowrite',351],352353];354355356