Weave 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
kinetix-breadcrumbs
kinetix-breadcrumbs
happones/kinetix
claude-code
breadcrumbs
resources
kinetix
inertia
vue
routing

Auto-derive breadcrumbs from a Kinetix Resource and feed the starter kit's <Breadcrumbs>. Resource::breadcrumbs() returns {title,href}[] for index/create/edit/show. Activates when adding breadcrumbs to resource pages.

Install
php artisan boost:add-skill happones/kinetix

Save this content to: .claude/skills/kinetix-breadcrumbs/SKILL.md

# Kinetix Resource Breadcrumbs

## When to Apply

Activate this skill when:
- Adding breadcrumbs to a Kinetix Resource page (index/create/edit/show).
- Wanting a server-derived breadcrumb trail instead of hand-writing it per page.

Kinetix does **not** ship a breadcrumbs component — the Laravel starter kit
already has one. Kinetix derives the *trail* from the Resource; you feed it to the
existing `<Breadcrumbs>`.

## Documentation

For full details, reference `docs/breadcrumbs.md` (published at https://happones.github.io/kinetix/breadcrumbs).

## Builder

```php
ProductResource::breadcrumbs('index');           // [Products]
ProductResource::breadcrumbs('create');          // [Products, Create]
ProductResource::breadcrumbs('show', $product);  // [Products, "Widget"]
ProductResource::breadcrumbs('edit', $product);  // [Products, "Widget", Edit]
```

Each item is `{ title, href }`. Built from `getNavigationLabel()` (root → index
route), `getRecordTitle($record)` (`name`→`title`→`#id`; override
`$recordTitleAttribute`) and `getRouteBaseName()` (plural-kebab model name;
override `$routeBaseName`). Links resolve with `route()` (auto-filling the record
+ `current_team`); falls back to the current URL so it never throws.

## In a controller

```php
return inertia('Kinetix/Products/Edit', [
    'form'        => $form->toArray(),
    'breadcrumbs' => ProductResource::breadcrumbs('edit', $record),
]);
```

`kinetix:make-resource` emits this automatically. Generated pages declare
`breadcrumbs?: KinetixBreadcrumb[]`.

## In the page

```vue
<AppLayout :breadcrumbs="breadcrumbs ?? []">…</AppLayout>
```

Adjust the layout/prop to your starter kit. i18n `breadcrumb_create/edit`.

Kinetix Resource Breadcrumbs

When to Apply

Activate this skill when:

  • Adding breadcrumbs to a Kinetix Resource page (index/create/edit/show).
  • Wanting a server-derived breadcrumb trail instead of hand-writing it per page.

Kinetix does not ship a breadcrumbs component — the Laravel starter kit already has one. Kinetix derives the trail from the Resource; you feed it to the existing <Breadcrumbs>.

Documentation

For full details, reference docs/breadcrumbs.md (published at https://happones.github.io/kinetix/breadcrumbs).

Builder

ProductResource::breadcrumbs('index');           // [Products]
ProductResource::breadcrumbs('create');          // [Products, Create]
ProductResource::breadcrumbs('show', $product);  // [Products, "Widget"]
ProductResource::breadcrumbs('edit', $product);  // [Products, "Widget", Edit]

Each item is { title, href }. Built from getNavigationLabel() (root → index route), getRecordTitle($record) (name→title→#id; override $recordTitleAttribute) and getRouteBaseName() (plural-kebab model name; override $routeBaseName). Links resolve with route() (auto-filling the record

  • current_team); falls back to the current URL so it never throws.

In a controller

return inertia('Kinetix/Products/Edit', [
    'form'        => $form->toArray(),
    'breadcrumbs' => ProductResource::breadcrumbs('edit', $record),
]);

kinetix:make-resource emits this automatically. Generated pages declare breadcrumbs?: KinetixBreadcrumb[].

In the page

<AppLayout :breadcrumbs="breadcrumbs ?? []">…</AppLayout>

Adjust the layout/prop to your starter kit. i18n breadcrumb_create/edit.

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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package