init
This commit is contained in:
16
app/Models/WeatherData.php
Normal file
16
app/Models/WeatherData.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user