<?php
namespace App\Livewire;
use App\Models\Community;
use App\Models\Metric;
use Livewire\Component;
class ShowEmbed extends Component
{
public function render(Community $community, Metric $metric)
{
if (! request()->hasValidSignature()) {
abort(401);
}
return view('livewire.show-embed', [
'community' => $community,
'metric' => $metric,
]);
}
}
<?php
namespace App\Livewire;
use App\Models\Community;
use App\Models\Metric;
use Livewire\Component;
class ShowEmbed extends Component
{
public function render(Community $community, Metric $metric)
{
if (! request()->hasValidSignature()) {
abort(401);
}
return view('livewire.show-embed', [
'community' => $community,
'metric' => $metric,
]);
}
}