for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\Device
*
* @property integer $device_id
* @property string $graph
**/
class DeviceGraph extends Model
{
* Indicates if the model should be timestamped.
* @var bool
*/
public $timestamps = false;
* The table associated with the model.
* @var string
protected $table = 'device_graphs';
* The attributes that are mass assignable.
* @var array
protected $fillable = ['device_id','graph'];
public function device()
return $this->belongsTo('App\Models\Device','device_id');
}