Support the ongoing development of Laravel.io →
posted 9 years ago
Forms
Last updated 2 years ago.
0

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'))) }}

0

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.

0
{{ Form::model(
        $model, 
        array(
            'route' => array('PostController.destroy', $user->id),
            'method' => 'delete'
        )
    ) 
}}

I did this indentation so you can see where there arguments are.

0

oh thanks! thank you so much

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ghostWolfe ghostwolfe Joined 21 Jan 2015

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.