<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class sessions extends Model
{
    protected $table = 'sessions';

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'id', 'ip_address', 'user_agent', 'payload'
    ];

    		    public function user() {
	    	return $this->hasOne('App\User','id','user_id');
	    }
}
