1
0
Fork 0
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:
Samuel Štancl 2021-04-09 18:47:19 +02:00
parent a60370fbc9
commit 57ab16675e
18 changed files with 244 additions and 25 deletions

View file

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