This is for update?
The route name is admin.products.update
{{Form::open(['route'=>['admin.products.update',$product->id],'class'=>'form-inline','method'=>'PUT'])}}
or just change the method, if it fails...
try it!
See "Actions Handled By Resource Controller" on http://laravel.com/docs/controllers#resource-controllers
Vluzrmos said:
This is for update?
The route name is admin.products.update
{{Form::open(['route'=>['admin.products.update',$product->id],'class'=>'form-inline','method'=>'PUT'])}}
or just change the method, if it fails...
try it!
Thanks for reply,
{{Form::open(['route'=>['admin.products.edit',$product->id],'class'=>'form-inline','method'=>'GET'])}}
{{Form::submit('Edit')}}
{{Form::close()}}
Now i can see my problem, it from Edit View
<!-- <div id="admin">
Edit Product
<hr>
{{Form::open(['route'=>'admin.products.update','method'=>'PUT'])}}
<p>
{{Form::label('cat_id','Category')}}
{{Form::select($category)}}
</p>
{{Form::close()}} -->
Event with comment tag, laravel still take my error code :D. I just try to remove error code with comment tag :D. Problem Solved!
Thanks for helping me :) ,Vluzrmos
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community