Skip to content

Commit cd4a706

Browse files
committed
Add routing
1 parent b0d3d9a commit cd4a706

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

routes/web.php

+18-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,22 @@
33
use Illuminate\Support\Facades\Route;
44

55
Route::get('/', function () {
6-
return view('welcome');
6+
// return view('welcome');
7+
return "Main Page";
78
});
9+
10+
Route::get("/hello", function () {
11+
return "Hello";
12+
})->name("hello");
13+
14+
Route::get("/hallo", function () {
15+
return redirect()->route("hello")
16+
});
17+
18+
Route::get("/greet/{name}", function ($name) {
19+
return "Hello " . $name . "!" ;
20+
});
21+
22+
Route::fallback(function () {
23+
return "Still got somwehere";
24+
});

0 commit comments

Comments
 (0)