Files
sam-manage/app/Http/Controllers/DashboardWeatherController.php

16 lines
335 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers;
use App\Services\WeatherService;
class DashboardWeatherController extends Controller
{
public function weather(WeatherService $weatherService)
{
$forecasts = $weatherService->getWeeklyForecast();
return view('dashboard.partials.weather', compact('forecasts'));
}
}