<?php
namespace App\Livewire;
use Livewire\Component;
class RefreshWarning extends Component
{
public $data;
public function __construct(
protected string $name,
) {}
public static function make(string $name): self
{
return new self($name);
}
public function mount($data = null)
{
$this->data = $data;
}
public static function canView(): bool
{
return true;
}
public function render()
{
return view('livewire.refresh-warning');
}
}
<?php
namespace App\Livewire;
use Livewire\Component;
class RefreshWarning extends Component
{
public $data;
public function __construct(
protected string $name,
) {}
public static function make(string $name): self
{
return new self($name);
}
public function mount($data = null)
{
$this->data = $data;
}
public static function canView(): bool
{
return true;
}
public function render()
{
return view('livewire.refresh-warning');
}
}