Skip to content
This repository was archived by the owner on Apr 19, 2022. It is now read-only.

Commit a57ad6d

Browse files
Андрей Сосновjhaoda
authored andcommitted
Несколько исправлений (#6)
* Фикс IdeHelperRun * Убран фасад из RegisterController * @type -> @var
1 parent c4a52de commit a57ad6d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/Console/Commands/IdeHelperRun.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
66
use Illuminate\Console\Command;
7+
use Illuminate\Support\Facades\App as App;
78

89
class IdeHelperRun extends Command
910
{
@@ -26,8 +27,8 @@ class IdeHelperRun extends Command
2627
*/
2728
public function handle()
2829
{
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()));
3132
return;
3233
}
3334
$this->call('ide-helper:generate');

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\User;
6-
use Validator;
76
use App\Http\Controllers\Controller;
87
use Illuminate\Foundation\Auth\RegistersUsers;
98

@@ -47,7 +46,7 @@ public function __construct()
4746
*/
4847
protected function validator(array $data)
4948
{
50-
return Validator::make($data, [
49+
return $this->getValidationFactory()->make($data, [
5150
'name' => 'required|max:255',
5251
'email' => 'required|email|max:255|unique:users',
5352
'password' => 'required|min:6|confirmed',

routes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Illuminate\Http\Request;
44
use Illuminate\Routing\Router;
55

6-
/** @type Router $router */
6+
/** @var Router $router */
77

88
/*
99
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)