public function edit($id)
{
try {
$role = $this->roles->findOrThrowException($id, true);
return view('vault::roles.edit')->withRole($role)->withRolePermissions($role->permissions->lists('id')->all())->withPermissions($this->permissions->getPermissionsNotAssociatedWithUser());
} catch (Exception $e) {
return Redirect::route('access.roles.index')->withInput()->withFlashDanger($e->getMessage());
}
}