Skip to content

Commit

Permalink
Fix NotFoundHttpException on role creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker182 authored and ajitbohra committed Mar 13, 2018
1 parent 4d7113c commit 3e35e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/AclController.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ public function storeRole(Request $request)
DB::commit();
flash()->success('Role was successfully created');

return redirect('role');
return redirect('user/role');
} catch (Exception $e) {
DB::rollback();
flash()->error('Role was not created');

return redirect('role');
return redirect('user/role');
}
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/user/createRole.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="panel-head">Enter Details of the role</div>
</div>

{!! Form::Open(['url' => 'role','id' => 'rolesform','files'=>'true']) !!}
{!! Form::Open(['url' => 'user/role','id' => 'rolesform','files'=>'true']) !!}

<div class="panel-body">
<div class="row">
Expand Down

0 comments on commit 3e35e2a

Please sign in to comment.