mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
improve thread links
This commit is contained in:
parent
57ab16675e
commit
4f2b5dc999
4 changed files with 19 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ Route::middleware('static')->group(function () {
|
|||
|
||||
Route::get('/threads/{thread}/{link}', function (Thread $thread, string $link) {
|
||||
return redirect($thread->links[$link]['url']);
|
||||
})->name('thread.show');
|
||||
})->name('thread.link');
|
||||
|
||||
Route::get('/threads/{thread}', function (Thread $thread) {
|
||||
return view('threads.show', [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue