my-website/app/Http/Controllers/HomeController.php

44 lines
996 B
PHP
Raw Normal View History

2024-02-18 15:16:41 +02:00
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class HomeController extends BaseController {
use AuthorizesRequests, ValidatesRequests;
function index(\Illuminate\Http\Request $r) {
$example = $r->get("name") ?? "John";
return view("home", [
"any_name" => $example,
]);
}
function about(\Illuminate\Http\Request $r) {
return view("about");
2024-02-19 14:45:41 +02:00
}
function loveit(\Illuminate\Http\Request $r) {
return view("loveit");
}
function nonotype(\Illuminate\Http\Request $r) {
return view("nonotype");
}
2024-02-21 00:03:14 +02:00
function login(\Illuminate\Http\Request $r) {
return view("login");
}
function register(\Illuminate\Http\Request $r) {
return view("register");
}
2024-02-18 15:16:41 +02:00
}