unioil-loyalty-app/app/StationFuelPrices.php

43 lines
713 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class StationFuelPrices extends Model
{
/**
* Table name of model
*
* @var string
*/
protected $table = 'station_fuel_prices';
/**
* Primary key field name of table
*
* @var string
*/
protected $primaryKey = 'fuel_price_id';
/**
* Additional fields from other connected tables
*
* @var array
*/
protected $appends = [];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [];
public function station()
{
return $this->hasOne('App\Station','station_id','station_id');
}
}