Skip to content

Commit

Permalink
Blog Route Updated
Browse files Browse the repository at this point in the history
Blog Route Updated
  • Loading branch information
codephics committed Aug 15, 2024
1 parent ed6af74 commit 729a737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Global/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public function shop()
]);
}

public function blogs()
public function blog()
{
$page = Page::where('slug', 'more-blogs')->firstOrFail();
$page = Page::where('slug', 'blog')->firstOrFail();
$setting = Setting::first();
$blogs = Blog::all();

Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
|--------------------------------------------------------------------------
*/

Route::get('blog/more-blogs', [PageController::class, 'blogs'])->name('blog.more');
Route::get('blog', [PageController::class, 'blog'])->name('blog.more');
Route::get('blog/detail/{slug}', [PageController::class, 'detail'])->name('blog.detail');

/*
Expand Down

0 comments on commit 729a737

Please sign in to comment.