Skip to content

Commit

Permalink
Merge pull request #155 from lara-zeus/fix-tag-not-found
Browse files Browse the repository at this point in the history
fix tag not found
  • Loading branch information
atmonshi authored Sep 15, 2023
2 parents cd35276 + 0dfe448 commit d5495fd
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,9 +2,9 @@

use Illuminate\Support\Facades\Route;
use LaraZeus\Sky\Http\Livewire\Faq;
use LaraZeus\Sky\Http\Livewire\LibrarTag;
use LaraZeus\Sky\Http\Livewire\Library;
use LaraZeus\Sky\Http\Livewire\LibraryItem;
use LaraZeus\Sky\Http\Livewire\LibraryTag;
use LaraZeus\Sky\Http\Livewire\Page;
use LaraZeus\Sky\Http\Livewire\Post;
use LaraZeus\Sky\Http\Livewire\Posts;
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 d5495fd

Please sign in to comment.