@@ -63,9 +63,9 @@ |
||
63 | 63 | protected function create(array $data) |
64 | 64 | { |
65 | 65 | return User::create([ |
66 | - 'name' => $data['name'], |
|
67 | - 'email' => $data['email'], |
|
68 | - 'password' => bcrypt($data['password']), |
|
66 | + 'name' => $data[ 'name' ], |
|
67 | + 'email' => $data[ 'email' ], |
|
68 | + 'password' => bcrypt($data[ 'password' ]), |
|
69 | 69 | ]); |
70 | 70 | } |
71 | 71 | } |
@@ -34,6 +34,6 @@ |
||
34 | 34 | */ |
35 | 35 | public function __construct() |
36 | 36 | { |
37 | - $this->middleware('guest', ['except' => 'logout']); |
|
37 | + $this->middleware('guest', [ 'except' => 'logout' ]); |
|
38 | 38 | } |
39 | 39 | } |
@@ -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')); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function via($notifiable) |
31 | 31 | { |
32 | - return ['nexmo']; |
|
32 | + return [ 'nexmo' ]; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -17,6 +17,6 @@ |
||
17 | 17 | { |
18 | 18 | $users = DB::table('users')->paginate(15); |
19 | 19 | |
20 | - return view('user.index', ['users' => $users]); |
|
20 | + return view('user.index', [ 'users' => $users ]); |
|
21 | 21 | } |
22 | 22 | } |