2c68eed072
add empty project creation if local image is found, we only refresh the configuration
20 lines
514 B
PHP
20 lines
514 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' => fake()->company(),
|
|
'description' => fake()->sentence(),
|
|
'team_id' => session('currentTeam')->id,
|
|
]);
|
|
return redirect()->route('project.environments', ['project_uuid' => $project->uuid, 'environment_name' => 'production']);
|
|
}
|
|
}
|