Cleanup node routes, cleanup remote token

This commit is contained in:
Dane Everitt 2017-03-03 23:14:23 -05:00
parent 287015669a
commit d38f89a468
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 131 additions and 114 deletions

View file

@ -48,4 +48,14 @@ class NodeConfigurationToken extends Model
* @var array
*/
protected $dates = ['created_at', 'updated_at', 'expires_at'];
/**
* Gets the node associated with a configuration token.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function node()
{
return $this->belongsTo(Node::class);
}
}