munazzil
9 months ago
744
6
Vue

How to create an edit button in vue.js and laravel that goes to edit url?

Posted 9 months ago by munazzil

This is button tag in vue.js.

     <a v-bind:href="'edit/+id+'"> Edit </a>

This is the route

    Route::put('books/{book}', '[email protected]');

This is blade

    @section('content')

 <div class="container">
       <div class="row">
        <div class="col-md-12">
            <editform></editform>
        </div>
      </div>
     </div>
 @endsection

url

http://localhost:8000/edit/+id+

Please sign in or create an account to participate in this conversation.