\App\ModelsPosition

Vessel Position Model

Summary

Methods
Properties
Constants
getTableFields()
normalizeItem()
csvSerialize()
getSearchFilters()
getSearchResult()
$timestamps
$mmsi
$status
$speed
$lat
$lon
$course
$heading
$rot
$timestamp
No constants found
No protected methods found
$table
$guarded
N/A
No private methods found
No private properties found
N/A

Properties

$timestamps

$timestamps : boolean

Indicates if the model should be timestamped.

Type

boolean

$mmsi

$mmsi : string

Type

string

$status

$status : integer

Type

integer

$speed

$speed : integer

Type

integer

$lat

$lat : float|integer|string

Type

float|integer|string

$lon

$lon : float|integer|string

Type

float|integer|string

$course

$course : integer

Type

integer

$heading

$heading : integer

Type

integer

$rot

$rot : string

Type

string

$timestamp

$timestamp : \App\Models\datetime

Type

\App\Models\datetime

$table

$table : string

The table associated with the model.

Type

string

$guarded

$guarded : array

Blacklist fields for mass assignment

Type

array

Methods

getTableFields()

getTableFields() : array

Get table fields

Returns

array

normalizeItem()

normalizeItem(\App\Models\Position  $item) : void

Normalize item: Position (pass by reference)

Parameters

\App\Models\Position $item

csvSerialize()

csvSerialize() : array

Serialize fields for CSV (like jsonSerialize)

Returns

array

getSearchFilters()

getSearchFilters(array  $form_data = array()) : array

Parse and normalize search filters from request

Parameters

array $form_data

$request->all() | $_GET | $_POST | $_REQUEST etc.

Returns

array

getSearchResult()

getSearchResult(array  $filters = array()) : \Illuminate\Pagination\LengthAwarePaginator

Get search result

Parameters

array $filters

Returns

\Illuminate\Pagination\LengthAwarePaginator