This commit is contained in:
2023-10-04 23:48:12 +03:00
parent 1ca5f4e521
commit 718cdb54f9
22 changed files with 262 additions and 263 deletions
+14 -2
View File
@@ -1,9 +1,13 @@
<?php namespace Lucent\StaticGenerator;
use Illuminate\Contracts\View\View;
class StaticGenerator
{
public function construct()
public function __construct(
)
{
}
@@ -35,5 +39,13 @@ class StaticGenerator
return 0;
}
public function createRedirect(string $from, string $to, string $title = "Redirecting", string $message = "Redirecting Soon..."): void
{
$html = view("lucent::redirect", [
"to" => $to,
"title" => $title,
"message" => $message,
])->render();
$this->save($from, $html);
}
}