Passing parameters

You can pass parameters in different ways to an link type. By value’s:

$links
    ->controller(UsersController::class)
    ->parameters(User::first(), Post::first());

Or by array:

$links
    ->controller(UsersController::class)
    ->parameters([User::first(), Post::first()]);

You can even pass an associative array where the keys will be used for parameter deducing:

$links
    ->controller(UsersController::class)
    ->parameters(['user' => User::first(), 'post' => Post::first()]);

Lastly, parameters can be called as many times as you want:

$links
    ->controller(UsersController::class)
    ->parameters(User::first())
    ->parameters(Post::first());