Livewire Unable to find component: [user-navigation]
Hi.
I've just installed jetstream with livewire. I've changed navigation-menu file name to user-navigation, and changed @livewire('navigation-menu') directive to @livewire('user-navigation') in layouts/app.blade.php.. but taking component not found error..
@vincent15000 BEcause of using jetstream no Livewire folder. For once, it is a blade component. There is a something wrong, but I couldn't find what it is.
I was trying to do the same thing (changing the navigation-menu.blade.php file name), and it's a livewire component. Looking at the jetstream vendor files I can see the component in vendor\laravel\jetstream\src\Http\Livewire\NavigationMenu.php:
<?php
namespace Laravel\Jetstream\Http\Livewire;
use Livewire\Component;
class NavigationMenu extends Component
{
/**
* The component's listeners.
*
* @var array
*/
protected $listeners = [
'refresh-navigation-menu' => '$refresh',
];
/**
* Render the component.
*
* @return \Illuminate\View\View
*/
public function render()
{
return view('navigation-menu');
}
}
If you need to rename the component to something else, you have to override the naming in this component. I am not sure how tho :)