lasthourcloud/app/Http/Livewire/Project/New/EmptyProject.php
Andras Bacsai 6e7ee0ca48 a ton 👷‍♂️
2023-05-24 14:26:50 +02:00

19 lines
462 B
PHP

<?php
namespace App\Http\Livewire\Project\New;
use App\Models\Project;
use Livewire\Component;
class EmptyProject extends Component
{
public function createEmptyProject()
{
$project = Project::create([
'name' => generate_random_name(),
'team_id' => session('currentTeam')->id,
]);
return redirect()->route('project.show', ['project_uuid' => $project->uuid, 'environment_name' => 'production']);
}
}