Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45943c0

Browse files
committed
fixes
1 parent f821dce commit 45943c0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
.idea
1111
.vagrant
1212
composer.lock
13+
.phpstorm.meta.php
14+
_ide_helper.php

‎app/Providers/AppServiceProvider.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<?php namespace App\Providers;
22

33
use App\Validation\CustomValidator;
4-
use Illuminate\Support\Facades\Validator;
4+
use Illuminate\Foundation\Application;
5+
use Validator;
56
use Illuminate\Support\ServiceProvider;
67

8+
/**
9+
* @property Application $app
10+
*/
711
class AppServiceProvider extends ServiceProvider
812
{
913

@@ -37,6 +41,11 @@ public function register()
3741

3842
$this->app->bind('App\Test\StringConverter', 'App\Test\ToLowercase');
3943
$this->app->addContextualBinding('App\Test\Repeat', '$times', 2);
44+
45+
if ($this->app->environment() !== 'production') {
46+
/** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
47+
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
48+
}
4049
}
4150

4251
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /