Skip to content

Commit 47d29bb

Browse files
author
Prosper Otemuyiwa
authored
Merge pull request #32 from Cyrille37/proposal_devtools-1
Proposal devtools 1
2 parents d2a922e + 28b7971 commit 47d29bb

File tree

8 files changed

+1450
-540
lines changed

8 files changed

+1450
-540
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@
33
Homestead.yaml
44
Homestead.json
55
.env
6+
7+
# barryvdh/laravel-ide-helper generated files
8+
_ide_helper.php
9+
10+
# Eclipse stuff
11+
.buildpath
12+
.project
13+
.settings/
14+

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
}

artisan

100644100755
File mode changed.

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)