docker-laravel-stack/laragigs/routes/web.php

22 lines
482 B
PHP
Raw Permalink Normal View History

2025-10-31 11:29:14 -04:00
<?php
use Illuminate\Http\Client\Request;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
################
Route::get('/hello', function(){
return response('<h1>Hello World... Sheldon!</h1>')
->header('Content-type', 'text/plain');
});
Route::get('/posts/{id}', function($id){
return response('Post ' . $id);;
})->where('id', '[0-9]+');
Route::get('/search/{id}', function(Request $request){
dd($request);
});