This repository was archived by the owner on Apr 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Barryvdh \LaravelIdeHelper \IdeHelperServiceProvider ;
6
6
use Illuminate \Console \Command ;
7
+ use Illuminate \Support \Facades \App as App ;
7
8
8
9
class IdeHelperRun extends Command
9
10
{
@@ -26,8 +27,8 @@ class IdeHelperRun extends Command
26
27
*/
27
28
public function handle ()
28
29
{
29
- if (!\ App::getProvider (IdeHelperServiceProvider::class)) {
30
- $ this ->info (sprintf ('Skipped. IdeHelper not registered for %s environment. ' , \ App::environment ()));
30
+ if (!App::getProvider (IdeHelperServiceProvider::class)) {
31
+ $ this ->info (sprintf ('Skipped. IdeHelper not registered for %s environment. ' , App::environment ()));
31
32
return ;
32
33
}
33
34
$ this ->call ('ide-helper:generate ' );
Original file line number Diff line number Diff line change 3
3
namespace App \Http \Controllers \Auth ;
4
4
5
5
use App \User ;
6
- use Validator ;
7
6
use App \Http \Controllers \Controller ;
8
7
use Illuminate \Foundation \Auth \RegistersUsers ;
9
8
@@ -47,7 +46,7 @@ public function __construct()
47
46
*/
48
47
protected function validator (array $ data )
49
48
{
50
- return Validator:: make ($ data , [
49
+ return $ this -> getValidationFactory ()-> make ($ data , [
51
50
'name ' => 'required|max:255 ' ,
52
51
'email ' => 'required|email|max:255|unique:users ' ,
53
52
'password ' => 'required|min:6|confirmed ' ,
Original file line number Diff line number Diff line change 3
3
use Illuminate \Http \Request ;
4
4
use Illuminate \Routing \Router ;
5
5
6
- /** @type Router $router */
6
+ /** @var Router $router */
7
7
8
8
/*
9
9
|--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments