mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Improve config file (#1564)
* Improve config file - Terminate all descriptions with a dot . - Update outdated descriptions - Add missing examples * Fix capitalizations
This commit is contained in:
+24
-24
@@ -4,10 +4,10 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Filename & Format
|
| Filename
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The default filename
|
| The default filename.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ return [
|
|||||||
| Models filename
|
| Models filename
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The default filename for the models helper file
|
| The default filename for the models helper file.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Where to write the PhpStorm specific meta file
|
| PhpStorm meta filename
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| PhpStorm also supports the directory `.phpstorm.meta.php/` with arbitrary
|
| PhpStorm also supports the directory `.phpstorm.meta.php/` with arbitrary
|
||||||
@@ -41,7 +41,7 @@ return [
|
|||||||
| Fluent helpers
|
| Fluent helpers
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Set to true to generate commonly used Fluent methods
|
| Set to true to generate commonly used Fluent methods.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Factory Builders
|
| Factory builders
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Set to true to generate factory generators for better factory()
|
| Set to true to generate factory generators for better factory()
|
||||||
@@ -63,10 +63,10 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Write Model Magic methods
|
| Write model magic methods
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Set to false to disable write magic methods of model
|
| Set to false to disable write magic methods of model.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -74,10 +74,10 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Write Model External Eloquent Builder methods
|
| Write model external Eloquent builder methods
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Set to false to disable write external eloquent builder methods
|
| Set to false to disable write external Eloquent builder methods.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Write Model relation count properties
|
| Write model relation count properties
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Set to false to disable writing of relation count properties to model DocBlocks.
|
| Set to false to disable writing of relation count properties to model DocBlocks.
|
||||||
@@ -96,11 +96,11 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Write Eloquent Model Mixins
|
| Write Eloquent model mixins
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This will add the necessary DocBlock mixins to the model class
|
| This will add the necessary DocBlock mixins to the model class
|
||||||
| contained in the Laravel Framework. This helps the IDE with
|
| contained in the Laravel framework. This helps the IDE with
|
||||||
| auto-completion.
|
| auto-completion.
|
||||||
|
|
|
|
||||||
| Please be aware that this setting changes a file within the /vendor directory.
|
| Please be aware that this setting changes a file within the /vendor directory.
|
||||||
@@ -134,7 +134,7 @@ return [
|
|||||||
| for models.
|
| for models.
|
||||||
|
|
|
|
||||||
| glob patterns are supported to easier reach models in sub-directories,
|
| glob patterns are supported to easier reach models in sub-directories,
|
||||||
| e.g. `app/Services/* /Models` (without the space)
|
| e.g. `app/Services/* /Models` (without the space).
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ return [
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'ignored_models' => [
|
'ignored_models' => [
|
||||||
|
// App\MyModel::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -160,7 +160,7 @@ return [
|
|||||||
| Models hooks
|
| Models hooks
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Define which hook classes you want to run for models to add custom information
|
| Define which hook classes you want to run for models to add custom information.
|
||||||
|
|
|
|
||||||
| Hooks should implement Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface.
|
| Hooks should implement Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface.
|
||||||
|
|
|
|
||||||
@@ -175,7 +175,7 @@ return [
|
|||||||
| Extra classes
|
| Extra classes
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| These implementations are not really extended, but called with magic functions
|
| These implementations are not really extended, but called with magic functions.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -197,7 +197,7 @@ return [
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'interfaces' => [
|
'interfaces' => [
|
||||||
|
// App\MyInterface::class => App\MyImplementation::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -228,7 +228,7 @@ return [
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Property Casts
|
| Property casts
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Cast the given "real type" to the given "type".
|
| Cast the given "real type" to the given "type".
|
||||||
@@ -255,9 +255,9 @@ return [
|
|||||||
| Force FQN usage
|
| Force FQN usage
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Use the fully qualified (class) name in docBlock,
|
| Use the fully qualified (class) name in DocBlocks,
|
||||||
| event if class exists in a given file
|
| even if the class exists in the same namespace
|
||||||
| or there is an import (use className) of a given class
|
| or there is an import (use className) of the class.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'force_fqn' => false,
|
'force_fqn' => false,
|
||||||
@@ -279,8 +279,8 @@ return [
|
|||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Sometimes it's needed to create custom relation types. The key of the array
|
| Sometimes it's needed to create custom relation types. The key of the array
|
||||||
| is the Relationship Method name. The value of the array is the canonical class
|
| is the relationship method name. The value of the array is the fully-qualified
|
||||||
| name of the Relationship, e.g. `'relationName' => RelationShipClass::class`.
|
| class name of the relationship, e.g. `'relationName' => RelationShipClass::class`.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'additional_relation_types' => [],
|
'additional_relation_types' => [],
|
||||||
|
|||||||
Reference in New Issue
Block a user