Skip to content

Commit 4a518c9

Browse files
committed
add barryvdh/laravel-debugbar and barryvdh/laravel-ide-helper
1 parent b858332 commit 4a518c9

File tree

4 files changed

+1434
-540
lines changed

4 files changed

+1434
-540
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@ public function boot()
2323
*/
2424
public function register()
2525
{
26-
//
26+
//
27+
// environment specific application initialization
28+
//
29+
switch( $this->app->environment() )
30+
{
31+
// development env
32+
case 'local':
33+
if( $this->app->runningInConsole() )
34+
{
35+
// Some dev tools to generate some code completion helpers (some fake php files)
36+
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
37+
}
38+
// A 'in browser' debug bar
39+
$this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);
40+
break;
41+
// testing env
42+
case '':
43+
break;
44+
// production env
45+
case '':
46+
break;
47+
}
48+
2749
}
2850
}

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"mockery/mockery": "0.9.*",
3131
"phpunit/phpunit": "~4.0",
3232
"symfony/css-selector": "2.8.*|3.0.*",
33-
"symfony/dom-crawler": "2.8.*|3.0.*"
33+
"symfony/dom-crawler": "2.8.*|3.0.*",
34+
"barryvdh/laravel-debugbar": "^2.3",
35+
"barryvdh/laravel-ide-helper": "^2.2",
36+
"doctrine/dbal": "^2.5"
3437
},
3538
"autoload": {
3639
"classmap": [

0 commit comments

Comments
 (0)