mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
branding
This commit is contained in:
parent
1beb9dd34c
commit
8dae8d1250
13 changed files with 79 additions and 60 deletions
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue