如何在laravel中传递变量id来形成动作?

I have following form to update category data

<h1>{{isset($image)?'Edit':'New'}}  Category</h1>

            <hr/>
            @if(isset($image))
    <form method="PUT" action="http://localhost:8000/update" enctype="multipart/form-data">
    <input type="hidden" name="_method" value="put">

now I need pass $image-> id to the action

 action="http://localhost:8000/update/ image->id here

how can I do this?

You need to use:

<form method="PUT" action="http://localhost:8000/update/{{$image->id}}" enctype="multipart/form-data">

Assuming that you are using resource controller, with update function similar to:

public function update($request, $id)