static
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user