How to add Routes with Multiple Parameters in Laravel Inertia and Vue
In today's lesson, we are going to see how to add routes with multiple parameters in Laravel Inertia and Vue, we will use ziggy a package that provides a route() helper function that works like Laravel's routes.
Using routes with multiple parameters
First, we need to add ziggy to our project click here, next inside your Vue component you can use routes with parameters like this:
<Link class="dropdown-item" :href="route('order.posts', ['title', 'asc'])">Title A-Z</Link>