Skip to content

Commit

Permalink
Remove testing false value, and dd
Browse files Browse the repository at this point in the history
  • Loading branch information
Bottelet committed Oct 16, 2016
1 parent 5091b74 commit 02d84ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/Http/Controllers/RolesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function store(StoreRoleRequest $request)
}
public function destroy($id)
{
dd("test");
$this->roles->destroy($id);
Session()->flash('flash_message', 'Role deleted');
return redirect()->route('roles.index');
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/User/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function update($id, $requestData)

$user->fill($input)->save();
$user->roles()->sync([$role]);
$user->department()->sync([$department], false);
$user->department()->sync([$department]);

Session::flash('flash_message', 'User successfully updated!');

Expand Down

0 comments on commit 02d84ae

Please sign in to comment.