my-website/routes/web.php

36 lines
1.0 KiB
PHP
Raw Normal View History

2024-02-17 02:03:18 +02:00
<?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!
|
*/
2024-02-19 16:43:26 +02:00
// @route('home')
// @route('index')
2024-02-17 02:03:18 +02:00
Route::get('/', function () {
2024-02-19 16:43:26 +02:00
return view('layout', ['heading' => 'Description', 'content' => '<p>Hello World!</p>']);
});
// @route('publications')
Route::get('/publications', function() {
return view('layout', ['heading' => 'Publications', 'content' => '<p><ul><li>A</li><li>B</li><li>C</li></ul></p>']);
});
// @route('profile')
Route::get('/profile', function() {
return view('layout', ['heading' => 'Profile', 'content' => '<p>This is my profile...</p>']);
});
// @route('contact')
Route::get('/contact', function() {
return view('contact');
2024-02-17 02:03:18 +02:00
});