Skip to content

Commit

Permalink
fixing form isset issue
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldreams committed Oct 16, 2018
1 parent b504f49 commit 8360909
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions resources/templates/view/3/forms/form.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form action="{{$route or route('@@routeName@@')}}" method="POST" @@options@@>
<form action="{{isset($route)?$route:route('@@routeName@@')}}" method="POST" @@options@@>
{{csrf_field()}}
<input type="hidden" name="_method" value="{{$method or 'POST'}}"/>
<input type="hidden" name="_method" value="{{isset($method)?$method:'POST'}}"/>
@@formContent@@

<div class="form-group text-right ">
Expand Down
4 changes: 2 additions & 2 deletions resources/templates/view/4/forms/form.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form action="{{$route or route('@@routeName@@')}}" method="POST" @@options@@ >
<form action="{{isset($route)?$route:route('@@routeName@@')}}" method="POST" @@options@@>
{{csrf_field()}}
<input type="hidden" name="_method" value="{{$method or 'POST'}}"/>
<input type="hidden" name="_method" value="{{isset($method)?$method:'POST'}}"/>
@@formContent@@

<div class="form-group text-right ">
Expand Down
4 changes: 2 additions & 2 deletions resources/templates/view/bulma/forms/form.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form action="{{$route or route('@@routeName@@')}}" method="POST" @@options@@ >
<form action="{{isset($route)?$route:route('@@routeName@@')}}" method="POST" @@options@@>
{{csrf_field()}}
<input type="hidden" name="_method" value="{{$method or 'POST'}}"/>
<input type="hidden" name="_method" value="{{isset($method)?$method:'POST'}}"/>
@@formContent@@

<div class="form-group text-right ">
Expand Down

0 comments on commit 8360909

Please sign in to comment.