Set up redirects

This commit is contained in:
2022-09-05 19:54:06 +02:00
parent cfb14498d4
commit 792a4aee9b
4 changed files with 49 additions and 6 deletions

16
app/Http/Redirection.php Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace App\Http;
class Redirection
{
public function __construct(
public readonly string $url,
public readonly string $target,
public readonly string $name
) {}
public static function named($name, $url, $target): Redirection {
return new Redirection($url, $target,$name);
}
}