Routing and Controllers

15 min read 3 views Jane Editor
Share:

Create your first route and controller.

Routes & Controllers

Routes live in routes/web.php:

Route::get('/hello', function () {
    return view('hello');
});

Route::get('/posts', [PostController::class, 'index']);

Comments (0)

Comments are disabled for this site.