Created
August 23, 2023 00:52
-
-
Save cesjam7/541409b835ee42951f0735e6596cde4e to your computer and use it in GitHub Desktop.
Tarea de rutas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Route; | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider and all of them will | |
| be assigned to the "web" middleware group. Make something great! | |
| | |
*/ | |
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
Route::get('/hola', function () { | |
return 'Hola mundo'; | |
}); | |
Route::get('/edad/{numero}', function ($numero) { | |
return 'Tu edad es '.$numero; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment