Change DB tables (remove temperature) (add sensors and readings Models Controllers and migrations) (and respect reallationships)

This commit is contained in:
2020-09-13 18:39:38 +01:00
parent 919e9422ef
commit ada0ae9805
7 changed files with 101 additions and 12 deletions

View File

@@ -37,4 +37,9 @@ class User extends Authenticatable
protected $casts = [
'email_verified_at' => 'datetime',
];
public function sensors()
{
return $this->hasMany('App\Models\Sensor');
}
}