Initial V2 commit
This commit is contained in:
14
app/Models/CarLocation.php
Normal file
14
app/Models/CarLocation.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CarLocation extends Model
|
||||
{
|
||||
protected $connection = 'tracking';
|
||||
protected $table = 'car_locations';
|
||||
protected $primaryKey = 'driver_id';
|
||||
protected $keyType = 'string';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $fillable = ['driver_id', 'latitude', 'longitude', 'heading', 'speed', 'distance', 'status', 'carType'];
|
||||
}
|
||||
Reference in New Issue
Block a user