%PDF- %PDF-
Direktori : /var/www/tsi-crm/routes/ |
Current File : /var/www/tsi-crm/routes/web.php |
<?php use App\Http\Controllers\MyFirstController; 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('/', [MyFirstController::class, 'index']); Route::get('/hello/{param}/{param2}', function ($param, $param2) { return "ciao <br />" . $param; }); Route::get('/hello-view', function () { $model = [ 'param1' => 'p1', 'param2' => 'p2' ]; return view('hello-view', $model); }); Route::get('/hello-controller/{param1}/{param2}', [MyFirstController::class, 'index']); Route::get('/hello-controller-query-string', [MyFirstController::class, 'indexQueryString']);