Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"conflict": {
"laravel/framework": "<=10.48.25, <=11.34.0",
"orchestra/testbench-core": "<8.23.9",
"nesbot/carbon": "<2.66.0"
"nesbot/carbon": "<2.66.0",
"laravel/scout": "<10.19.1"
},
"autoload": {
"psr-4": {
Expand Down
11 changes: 0 additions & 11 deletions src/Platform/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function handle()
->executeCommand('migrate')
->executeCommand('storage:link')
->changeUserModel()
->setValueEnv('SCOUT_DRIVER')
->when(class_exists(\App\Models\User::class), function () {
$this->replaceInFiles(app_path(), 'use Orchid\\Platform\\Models\\User;', 'use App\\Models\\User;');
})
Expand Down Expand Up @@ -110,16 +109,6 @@ private function changeUserModel(string $path = 'Models/User.php'): self
return $this;
}

private function setValueEnv(string $constant, string $value = 'null'): self
{
$str = $this->fileGetContent(app_path('../.env'));

if ($str !== false && ! str_contains($str, $constant)) {
file_put_contents(app_path('../.env'), $str.PHP_EOL.$constant.'='.$value.PHP_EOL);
}

return $this;
}

/**
* @return false|string
Expand Down
Loading