static
This commit is contained in:
1 parent
1ca5f4e521
commit
718cdb54f9
22 files changed
+262
-263
No files matched your search
@@ -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