lasthourcloud/app/Http/Livewire/Project/New/EmptyProject.php

19 lines
460 B
PHP
Raw Normal View History

<?php
namespace App\Http\Livewire\Project\New;
use App\Models\Project;
use Livewire\Component;
class EmptyProject extends Component
{
public function createEmptyProject()
{
$project = Project::create([
2023-05-02 07:11:22 +00:00
'name' => generateRandomName(),
'team_id' => session('currentTeam')->id,
]);
2023-05-22 13:47:40 +00:00
return redirect()->route('project.show', ['project_uuid' => $project->uuid, 'environment_name' => 'production']);
}
}