feat: add titles

This commit is contained in:
Andras Bacsai
2024-06-07 11:01:10 +02:00
parent a7a9aab189
commit 35cea852ca
57 changed files with 175 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ use Livewire\Component;
class Create extends Component
{
public $type;
public $project;
public function mount()
{
$type = str(request()->query('type'));
@@ -20,6 +21,7 @@ class Create extends Component
if (!$project) {
return redirect()->route('dashboard');
}
$this->project = $project;
$environment = $project->load(['environments'])->environments->where('name', request()->route('environment_name'))->first();
if (!$environment) {
return redirect()->route('dashboard');