1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
This commit is contained in:
Samuel Štancl 2021-04-06 21:14:55 +02:00
parent 1beb9dd34c
commit 8dae8d1250
13 changed files with 79 additions and 60 deletions

View file

@ -21,14 +21,14 @@ Route::middleware('static')->group(function () {
return view('tips.index', ['tips' => Tip::all()]);
})->name('tip.index');
Route::get('/tips/{tip}', function (Tip $tip) {
return view('tips.show', compact('tip'));
})->name('tip.show');
Route::get('/threads/{thread}', function (Thread $thread) {
return view('threads.show', [
'thread' => $thread,
'tips' => $thread->tips,
]);
})->name('thread.show');
Route::get('/{tip}', function (Tip $tip) {
return view('tips.show', compact('tip'));
})->name('tip.show');
});