26 lines
493 B
PHP
26 lines
493 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use App\Services\WeatherService;
|
|
use Livewire\Attributes\Layout;
|
|
use Livewire\Attributes\Title;
|
|
use Livewire\Component;
|
|
|
|
#[Title('Fox HUD')]
|
|
#[Layout('layouts.dashboard')]
|
|
class Dashboard extends Component
|
|
{
|
|
public function getWeatherProperty(): array
|
|
{
|
|
return app(WeatherService::class)->fetch();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.dashboard', [
|
|
'weather' => $this->weather,
|
|
]);
|
|
}
|
|
}
|