New Controllers added. Added Charts

This commit is contained in:
2017-09-19 22:01:00 +02:00
parent ccc5b07ddf
commit 930311b550
400 changed files with 30686 additions and 8 deletions

50
Laravel/app/Stats.php Normal file
View File

@@ -0,0 +1,50 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Stats extends Model
{
/**
* The database table uses by the model.
*
* @var string
*/
protected $table = 'stats';
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = [
'created_at',
];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'node_id',
'pin',
'humidity',
'temperature',
'isoutside',
'gm3',
'created_at'
];
/**
* The attributes excluded from the model's JSON form
*
* @var array
*/
protected $hidden = [
//
];
}