dimanche 12 avril 2020

How to send a value within a form as the delete id in laravel collectives?

I need to send the value in the text box update_daycare_id as the id to be deleted in the destroy method within the controller. That it should replace the value 10. Is it possible?

<div class="m-4" id="search_delete_daycare_div" style="display:none">
    {!! Form::open(['action' => ['DaycareController@destroy',10],'method' => 'POST']) !!}
        <div class="row">
            <div class="col-sm">
                <div class="col-sm">
                    <div class="form-group row">
                        <label for="staticEmail" class="col-sm-3 col-form-label">Enter Daycare ID</label>
                        <div class="col-sm-9">
                            
                        </div>
                    </div>
                </div> 
            </div>
            <div class="col-sm">
                <div style="text-align: center;" >
                    
                    
                </div>
            </div>
        </div>
    {!! Form::close() !!}
</div>


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire