Skip to content

Commit 2296edf

Browse files
committed
Create better named template
1 parent 9c02b89 commit 2296edf

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

app/Http/Controllers/PuppyController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PuppyController extends Controller
1212
{
1313
public function index()
1414
{
15-
return Inertia::render('welcome', [
15+
return Inertia::render('puppies/index', [
1616
'canRegister' => Features::enabled(Features::registration()),
1717
'puppies' => PuppyResource::collection(Puppy::get()->load(['user', 'likedBy'])),
1818
]);

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Support\Facades\Route;
55
use Inertia\Inertia;
66

7-
Route::get('/', [PuppyController::class, 'index'])->name('puppy.index');
7+
Route::get('/', [PuppyController::class, 'index'])->name('home');
88

99
// AUTH PROTECTED ROUTES
1010
Route::middleware(['auth', 'verified'])->group(function () {

0 commit comments

Comments
 (0)