gludovatza liked a comment+100 XP
3w ago
Laravel From Scratch (2026 Edition): Ep 10, Controllers
One important thing when creating routes like that, is the order.
Route::get('/ideas/create', [IdeaController::class, 'index']);
Must be defined before
Route::get('/ideas/{idea}', [IdeaController::class, 'show']);
Or you will scratch your head as to why you get a 404 when trying to navigate to the create Idea route.
gludovatza wrote a comment+100 XP
2mos ago
Laravel From Scratch (2026 Edition): Ep 8, Databases, Migrations, and Eloquent
@heavyboots if you already have data in the table, you cannot add a column, which has a NOT NULL constraint (without "-> nullable()").