Skip to content

v2.0.0

Compare
Choose a tag to compare
@ph7jack ph7jack released this 25 Apr 04:56
· 19 commits to main since this release
0752b62

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