1
0
Fork 0
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:
Samuel Štancl 2021-04-09 18:53:27 +02:00
parent 57ab16675e
commit 4f2b5dc999
4 changed files with 19 additions and 6 deletions

View file

@ -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', [