Releases: wireui/breadcrumbs
Releases · wireui/breadcrumbs
v3.1.1
What's Changed
- [Docs]: Adjust Docs by @joaopalopes24 in #9
New Contributors
- @joaopalopes24 made their first contribution in #9
Full Changelog: v3.1.0...v3.1.1
v3.1.0
v3.0.0
v2.0.0
What's Changed
- v2: refactor breadcrumbs by @PH7-Jack in #4
Breaking Changes
Route Breadcrumb
Previously, we had a method to add breadcrumbs directly into the routes, now it was removed.
This way was removed because of a conflict in the routes caching.
Route::get('/users/create', Index::class)
->breadcrumbs(function (Trail $trail) {
return $trail
->push('Users', route('users'))
->push('Create');
})
->name('users.create');
To add breadcrumbs for a route, we use the routes/breadcrumbs.php
file
Breadcrumbs::for('users.view')
->push('Users', route('users'))
->push('View')
->callback(function (Trail $trail, User $user): Trail {
return $trail->push($user->name);
});
Tailwind Content
add the new Tailwind content paths
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./vendor/wireui/breadcrumbs/src/Components/**/*.php',
'./vendor/wireui/breadcrumbs/src/views/**/*.blade.php',
],
}
PHP 8.1 or Laravel 9?
NO. WireUi always uses only the latest versions for new releases.
Old versions will still have support and fixes.
Full Changelog: v1.1.0...v2.0.0