setup complete

This commit is contained in:
2024-09-06 23:30:12 +03:00
parent a73ee21568
commit 6fc0a65b6f
22 changed files with 351 additions and 330 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Lucent\Setup\Step;
use Lucent\Setup\Data\SetupStep;
class LaravelEnvStep implements IStep
{
public function __invoke(): SetupStep
{
$name = "Laravel ENV";
$instructions = <<<EOD
# Make sure in your env that you APP_URL is the same as the one in your browser right now. Or the other way round.
EOD;
return match (config("lucent.url") === request()->getSchemeAndHttpHost()) {
true => SetupStep::makeSuccess($name, $instructions),
false => SetupStep::makeFail($name, $instructions),
};
}
}