1. Go to this page and download the library: Download wireui/breadcrumbs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace App\Http\Livewire;
use Livewire\Component;
use WireUi\Breadcrumbs\Trail;
class Index extends Component
{
/*
* Don't forget
* - This method must return a `Trail` instance
* - It must be a public method
* - You can use dependency injection
*/
public function breadcrumbs(Trail $trail): Trail
{
return $trail
->push('Users', route('users'))
->push('Create 1');
}
}