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