PHP code example of fadhriza / indonesia-weather-widget
1. Go to this page and download the library: Download fadhriza/indonesia-weather-widget library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fadhriza / indonesia-weather-widget example snippets
namespace App\Providers;
use Filament\Panel;
use Filament\PanelProvider;
use IndonesiaWeather\Widgets\IndonesiaWeatherWidget;
class YourPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('admin')
->path('admin')
->widgets([
IndonesiaWeatherWidget::class,
]);
}
}
// In your panel provider or widget configuration
IndonesiaWeatherWidget::class,