@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function __construct() |
| 40 | 40 | { |
| 41 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
| 41 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
| 42 | 42 | $this->middleware('lang'); |
| 43 | 43 | |
| 44 | 44 | } |
@@ -48,15 +48,15 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $user = auth()->user(); |
| 50 | 50 | |
| 51 | - if(Bouncer::is($user)->a('Administrator', 'Manager')) { |
|
| 51 | + if (Bouncer::is($user)->a('Administrator', 'Manager')) { |
|
| 52 | 52 | return redirect()->route('dashboard.administration'); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - elseif(Bouncer::is($user)->an('Agents')) { |
|
| 55 | + elseif (Bouncer::is($user)->an('Agents')) { |
|
| 56 | 56 | return redirect()->route('dashboard.agent'); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - elseif(Bouncer::is($user)->an('Customer')) { |
|
| 59 | + elseif (Bouncer::is($user)->an('Customer')) { |
|
| 60 | 60 | return redirect('/'); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -88,10 +88,10 @@ discard block |
||
| 88 | 88 | protected function create(array $data) |
| 89 | 89 | { |
| 90 | 90 | $newUser = User::create([ |
| 91 | - 'fname' => $data['fname'], |
|
| 92 | - 'name' => $data['name'], |
|
| 93 | - 'email' => $data['email'], |
|
| 94 | - 'password' => bcrypt($data['password']), |
|
| 91 | + 'fname' => $data[ 'fname' ], |
|
| 92 | + 'name' => $data[ 'name' ], |
|
| 93 | + 'email' => $data[ 'email' ], |
|
| 94 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 95 | 95 | ]); |
| 96 | 96 | |
| 97 | 97 | Bouncer::assign('Guest')->to($newUser); |