-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [BREAKING CHANGES] Now working with Livewire v2 too (#8)
* fix: Separate files according to namespace and version * feat: test-route check on links in blade file * feat: test-route check on sub-menu links
- Loading branch information
1 parent
ec14218
commit a738763
Showing
5 changed files
with
141 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Http\Livewire\Components; | ||
|
||
use Livewire\Component; | ||
|
||
class Navbar extends Component | ||
{ | ||
public $title; | ||
public function mount($title) | ||
{ | ||
$this->title = $title; | ||
} | ||
public function render() | ||
{ | ||
return view('livewire.components.navbar'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App\Http\Livewire\Components; | ||
|
||
use Livewire\Component; | ||
|
||
class Sidebar extends Component | ||
{ | ||
public function render() | ||
{ | ||
return view('livewire.components.sidebar'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters