@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Providers; |
4 | 4 | |
5 | 5 | use App\Services\Access\Access; |
6 | -use Illuminate\Support\Facades\Blade; |
|
7 | 6 | use Illuminate\Support\ServiceProvider; |
8 | 7 | |
9 | 8 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | private function registerAccess() |
46 | 46 | { |
47 | - $this->app->bind('access', function ($app) { |
|
47 | + $this->app->bind('access', function($app) { |
|
48 | 48 | return new Access($app); |
49 | 49 | }); |
50 | 50 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function registerFacade() |
58 | 58 | { |
59 | - $this->app->booting(function () { |
|
59 | + $this->app->booting(function() { |
|
60 | 60 | $loader = \Illuminate\Foundation\AliasLoader::getInstance(); |
61 | 61 | $loader->alias('Access', \App\Services\Access\Facades\Access::class); |
62 | 62 | }); |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function unauthenticated($request, AuthenticationException $exception) |
58 | 58 | { |
59 | 59 | if ($request->expectsJson()) { |
60 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | return redirect()->guest(route('login')); |
@@ -65,9 +65,9 @@ |
||
65 | 65 | protected function create(array $data) |
66 | 66 | { |
67 | 67 | return User::create([ |
68 | - 'name' => $data['name'], |
|
69 | - 'email' => $data['email'], |
|
70 | - 'password' => bcrypt($data['password']), |
|
68 | + 'name' => $data[ 'name' ], |
|
69 | + 'email' => $data[ 'email' ], |
|
70 | + 'password' => bcrypt($data[ 'password' ]), |
|
71 | 71 | ]); |
72 | 72 | } |
73 | 73 | } |