New Controllers added. Added Charts
This commit is contained in:
50
Laravel/app/Stats.php
Normal file
50
Laravel/app/Stats.php
Normal 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 = [
|
||||
//
|
||||
];
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user