File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Stats/Models/SearchStats.php
<?php
/**
* Short description for the file.
*
* @author Tim Van Samang <timvansamang@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace KommaApp\Stats\Models;
use Illuminate\Database\Eloquent\Model;
class SearchStats extends Model
{
protected $table = 'search_stats';
protected $fillable = ['id', 'customer_id', 'customer_country_id', 'search_term', 'result_count', 'result_ids'];
public function customer()
{
return $this->hasOne(\KommaApp\Customers\Models\Customer::class, 'id', 'customer_id');
}
public function customer_country()
{
return $this->hasOne(\KommaApp\Countries\Models\Country::class, 'id', 'customer_country_id');
}
}