24 lines
471 B
PHP
24 lines
471 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class ServiceStat extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
|
||
|
|
protected $fillable = ['date'];
|
||
|
|
|
||
|
|
protected $table = "services_stats";
|
||
|
|
|
||
|
|
public function brand() {
|
||
|
|
return $this->belongsTo('App\Models\Brand', 'brand_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function service() {
|
||
|
|
return $this->belongsTo('App\Models\Service', 'service_id');
|
||
|
|
}
|
||
|
|
}
|