@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | public function create(array $data, $validate = true) |
| 69 | 69 | { |
| 70 | 70 | $this->rules = [ |
| 71 | - 'slug' => 'required|alpha_dash|unique:roles', |
|
| 72 | - 'name' => 'required|alpha_dash|unique:roles', |
|
| 71 | + 'slug' => 'required|alpha_dash|unique:roles', |
|
| 72 | + 'name' => 'required|alpha_dash|unique:roles', |
|
| 73 | 73 | ]; |
| 74 | 74 | |
| 75 | 75 | if ($validate) { |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | try { |
| 87 | 87 | $role = $this->sentinel->getRoleRepository() |
| 88 | - ->createModel() |
|
| 89 | - ->create($data); |
|
| 88 | + ->createModel() |
|
| 89 | + ->create($data); |
|
| 90 | 90 | } catch (QueryException $e) { |
| 91 | 91 | throw new RolesException(trans('dashboard::dashboard.errors.role.create')); |
| 92 | 92 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | public function getAllWith($type) |
| 79 | 79 | { |
| 80 | 80 | return $this->user->with($type) |
| 81 | - ->get(); |
|
| 81 | + ->get(); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -95,8 +95,8 @@ discard block |
||
| 95 | 95 | public function getByIdWith($id, $type) |
| 96 | 96 | { |
| 97 | 97 | return $this->user->with($type) |
| 98 | - ->where('id', '=', $id) |
|
| 99 | - ->first(); |
|
| 98 | + ->where('id', '=', $id) |
|
| 99 | + ->first(); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -105,9 +105,9 @@ discard block |
||
| 105 | 105 | public function create(array $data, $validate = true) |
| 106 | 106 | { |
| 107 | 107 | $this->rules = [ |
| 108 | - 'email' => 'required|unique:users', |
|
| 109 | - 'password' => 'required|confirmed', |
|
| 110 | - 'password_confirmation' => 'required', |
|
| 108 | + 'email' => 'required|unique:users', |
|
| 109 | + 'password' => 'required|confirmed', |
|
| 110 | + 'password_confirmation' => 'required', |
|
| 111 | 111 | ]; |
| 112 | 112 | |
| 113 | 113 | if ($validate) { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | if (!$user->inRole($role)) { |
| 150 | 150 | $role->users() |
| 151 | - ->attach($user); |
|
| 151 | + ->attach($user); |
|
| 152 | 152 | } |
| 153 | 153 | } |
| 154 | 154 | |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | $user = $this->auth->authenticate($data); |
| 166 | 166 | |
| 167 | 167 | $this->rules = [ |
| 168 | - 'new_password' => 'required|confirmed', |
|
| 169 | - 'new_password_confirmation' => 'required', |
|
| 168 | + 'new_password' => 'required|confirmed', |
|
| 169 | + 'new_password_confirmation' => 'required', |
|
| 170 | 170 | ]; |
| 171 | 171 | |
| 172 | 172 | if ($validate) { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | $updatedData = [ |
| 177 | - 'password' => $data['new_password'], |
|
| 177 | + 'password' => $data['new_password'], |
|
| 178 | 178 | ]; |
| 179 | 179 | |
| 180 | 180 | $this->sentinel->update($user, $updatedData); |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | * @var array |
| 28 | 28 | */ |
| 29 | 29 | protected $fillable = [ |
| 30 | - 'name', |
|
| 31 | - 'slug', |
|
| 30 | + 'name', |
|
| 31 | + 'slug', |
|
| 32 | 32 | ]; |
| 33 | 33 | |
| 34 | 34 | /** |