Support the ongoing development of Laravel.io →
Requests Eloquent Views
Last updated 2 years ago.
0

Help please!

Last updated 2 years ago.
0

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!

Last updated 2 years ago.
0

See "Actions Handled By Resource Controller" on http://laravel.com/docs/controllers#resource-controllers

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.