remove faker from prod

This commit is contained in:
Andras Bacsai
2023-05-02 09:11:22 +02:00
parent 7377f80bdd
commit 4ebae8dcf6
6 changed files with 70 additions and 7 deletions

View File

@@ -10,8 +10,7 @@ class EmptyProject extends Component
public function createEmptyProject()
{
$project = Project::create([
'name' => fake()->company(),
'description' => fake()->sentence(),
'name' => generateRandomName(),
'team_id' => session('currentTeam')->id,
]);
return redirect()->route('project.environments', ['project_uuid' => $project->uuid, 'environment_name' => 'production']);