Change DB tables (remove temperature) (add sensors and readings Models Controllers and migrations) (and respect reallationships)
This commit is contained in:
@@ -37,4 +37,9 @@ class User extends Authenticatable
|
||||
protected $casts = [
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function sensors()
|
||||
{
|
||||
return $this->hasMany('App\Models\Sensor');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user