Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Endpoint Resources Laravel Package

spatie/laravel-endpoint-resources

Abandoned package that adds controller/action-based URL links to Laravel API resources and collection meta. Includes traits to generate “show/edit/update/delete” item links and “index/create/store” collection links automatically.

View on GitHub
Deep Wiki
Context7

title: Passing parameters weight: 5

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());
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport