Skip to content

Commit cbf0856

Browse files
committed
Implementing laravel-ide-helper
1 parent 134648d commit cbf0856

File tree

5 files changed

+191
-3
lines changed

5 files changed

+191
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ storage/*.key
1212
Homestead.yaml
1313
Homestead.json
1414
docker-compose.yaml
15+
.phpstorm.meta.php
16+
_ide_helper.php

app/Providers/AppServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function boot()
2525
*/
2626
public function register()
2727
{
28+
if ($this->app->environment() !== 'production') {
29+
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
30+
}
31+
2832
$this->app->singleton(FakerGenerator::class, function () {
2933
return FakerFactory::create('pt_BR');
3034
});

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"laravel/framework": "5.3.*"
1010
},
1111
"require-dev": {
12+
"barryvdh/laravel-ide-helper": "^2.4",
1213
"fzaninotto/faker": "~1.4",
1314
"mockery/mockery": "0.9.*",
1415
"phpunit/phpunit": "~5.0",
@@ -37,10 +38,14 @@
3738
],
3839
"post-install-cmd": [
3940
"Illuminate\\Foundation\\ComposerScripts::postInstall",
41+
"php artisan ide-helper:generate",
42+
"php artisan ide-helper:meta",
4043
"php artisan optimize"
4144
],
4245
"post-update-cmd": [
4346
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
47+
"php artisan ide-helper:generate",
48+
"php artisan ide-helper:meta",
4449
"php artisan optimize"
4550
]
4651
},

composer.lock

Lines changed: 179 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/app.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@
166166
/*
167167
* Package Service Providers...
168168
*/
169-
170-
//
169+
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
171170

172171
/*
173172
* Application Service Providers...

0 commit comments

Comments
 (0)