Skip to content

Commit

Permalink
Removed unused route helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 24, 2024
1 parent 3805441 commit 56720e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
namespace Hyde\Framework\Features\Blogging\DynamicPages;

use Hyde\Pages\InMemoryPage;
use Hyde\Support\Models\Route;
use Hyde\Support\Models\RouteKey;
use Hyde\Foundation\Facades\Routes;
use Hyde\Framework\Features\Blogging\Models\PostAuthor;

/**
Expand Down Expand Up @@ -38,9 +35,4 @@ public function getBladeView(): string
{
return static::$layout;
}

public static function route(string $username): ?Route
{
return Routes::get(RouteKey::fromPage(static::class, $username)->get());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
namespace Hyde\Framework\Features\Blogging\DynamicPages;

use Hyde\Pages\InMemoryPage;
use Hyde\Support\Models\Route;
use Hyde\Support\Models\RouteKey;
use Illuminate\Support\Collection;
use Hyde\Foundation\Facades\Routes;

/**
* @experimental
Expand Down Expand Up @@ -42,9 +39,4 @@ public function getBladeView(): string
{
return static::$layout;
}

public static function route(): ?Route
{
return Routes::get(RouteKey::fromPage(static::class, 'index')->get());
}
}

0 comments on commit 56720e5

Please sign in to comment.