skip to Main Content

Livewire component not updating – Laravel

I have a simple component: <input type="text" wire:model="search"> {{ $search }} I load this like this: @livewire('searchbar') And this is my class: class Searchbar extends Component { public $search; public $results = []; public function updatedSearch() { info($this->search); $this->results =…

VIEW QUESTION

In Laravel how can I make a side bar when pressed goes to the page content link but still is the current page

I want to have the same mechanism like this https://www.w3schools.com/html/default.asp but in laravel application This is my code on routes/web.php Route::get('tutorial', function(){ $tutorial = Tutorial::get(); return view('tutorial.index')->with('tutorial', $tutorial); })->name('index-tutorial'); // Show one Tutorial by Id Route::get('tutorial/{id}', function($id){ $tutorial = Tutorial::findOrFail($id);…

VIEW QUESTION
Back To Top
Search