<?php
namespace App\Livewire;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redirect;
use Livewire\Component;
class SwitchTeam extends Component
{
public $tenant;
public $team;
public function store() {
Log::info($this->tenant . " - " . $this->team);
}
public function render()
{
Log::info($this->tenant . " - " . $this->team);
// Other Logic ....
return $this->redirect(route('filament.app.pages.dashboard', ['tenant' => $this->tenant]));
}
}
<?php
namespace App\Livewire;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redirect;
use Livewire\Component;
class SwitchTeam extends Component
{
public $tenant;
public $team;
public function store() {
Log::info($this->tenant . " - " . $this->team);
}
public function render()
{
Log::info($this->tenant . " - " . $this->team);
// Other Logic ....
return $this->redirect(route('filament.app.pages.dashboard', ['tenant' => $this->tenant]));
}
}