mirror of
https://github.com/phpmon/website
synced 2025-08-07 06:40:08 +02:00
Set up redirects
This commit is contained in:
16
app/Http/Redirection.php
Normal file
16
app/Http/Redirection.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user