This commit is contained in:
foobar
2022-08-21 21:39:06 +02:00
commit 27c1969aaa
7354 changed files with 897064 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class WeatherData extends Model
{
use HasFactory;
protected $fillable = ['localtime_epoch', 'city_id', 'current_temperature', 'weather_icon', 'weather_description', 'wind_speed', 'wind_dir'];
public function city() {
return $this->belongsTo(City::class);
}
}