Skip to content

Commit

Permalink
fix tag not found
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Sep 15, 2023
1 parent cd35276 commit eef4559
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Support\Facades\Route;
use LaraZeus\Sky\Http\Livewire\Faq;
use LaraZeus\Sky\Http\Livewire\LibrarTag;
use LaraZeus\Sky\Http\Livewire\LibraryTag;
use LaraZeus\Sky\Http\Livewire\Library;
use LaraZeus\Sky\Http\Livewire\LibraryItem;
use LaraZeus\Sky\Http\Livewire\Page;
Expand All @@ -26,7 +26,7 @@
if (SkyPlugin::get()->hasLibraryResource()) {
Route::prefix(SkyPlugin::get()->getUriPrefix()['library'])->group(function () {
Route::get('/', Library::class)->name('library');
Route::get('/tag/{slug}', LibrarTag::class)->name('library.tag');
Route::get('/tag/{slug}', LibraryTag::class)->name('library.tag');
Route::get('/{slug}', LibraryItem::class)->name('library.item');
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use LaraZeus\Sky\SkyPlugin;
use Livewire\Component;

class LibrarTag extends Component
class LibraryTag extends Component
{
public Tag $tag;
public ?Tag $tag;

public function mount(string $slug): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Livewire/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Tags extends Component

public string $slug;

public Tag $tag;
public ?Tag $tag;

public function mount(string $type, string $slug): void
{
Expand Down

0 comments on commit eef4559

Please sign in to comment.