hi,
{{ Form::model($post,('routes'=>array('PostController.destroy','$post->id','method'=>'delete'))) }}
try to add the keyword 'array' between $post, and ('routes'
{{ Form::model($post,array('routes'=>array('PostController.destroy','$post->id','method'=>'delete'))) }}
Hi thanks for the reply! :)
but now ive got a new error. what could be the problem ?
htmlentities() expects parameter 1 to be string, array given .... :( thanks again for the help, ive googled form bindings and problems like this but they are different from my case, they have form::text, etc.
{{ Form::model(
$model,
array(
'route' => array('PostController.destroy', $user->id),
'method' => 'delete'
)
)
}}
I did this indentation so you can see where there arguments are.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community