Skip to content

Commit

Permalink
Merge pull request #11 from vishalinfyom/patch-1
Browse files Browse the repository at this point in the history
#10 Fixed roles update
  • Loading branch information
PovilasKorop committed Oct 12, 2019
2 parents 633f4c3 + 14b3519 commit 4168ac3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/views/admin/roles/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
</div>

<div class="card-body">
<form action="{{ route("admin.roles.store") }}" method="POST" enctype="multipart/form-data">
<form action="{{ route("admin.roles.update", [$role->id]) }}" method="POST" enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
<label for="name">{{ trans('cruds.role.fields.name') }}*</label>
<input type="text" id="name" name="name" class="form-control" value="{{ old('name', isset($role) ? $role->name : '') }}" required>
Expand Down Expand Up @@ -47,4 +48,4 @@

</div>
</div>
@endsection
@endsection

0 comments on commit 4168ac3

Please sign in to comment.