trait Locationable

Properties

bool $locationScopeEnabled

Methods

static void
bootLocationable()

Boot the locationable trait for a model.

locationableScopeEnabled()

No description

locationableGetUserLocation()

No description

scopeWhereHasLocation($query, $locationId)

No description

scopeWhereHasOrDoesntHaveLocation($query, $locationId)

No description

applyLocationScope(Builder $builder, Model|array|int $userLocation)

Apply the Location scope query.

detachLocationsOnDelete()

No description

locationableRelationName()

No description

locationableRelationExists()

No description

Details

at line 27
static void bootLocationable()

Boot the locationable trait for a model.

Return Value

void

at line 34
locationableScopeEnabled()

No description

at line 42
locationableGetUserLocation()

No description

at line 51
scopeWhereHasLocation($query, $locationId)

No description

Parameters

$query
$locationId

at line 56
scopeWhereHasOrDoesntHaveLocation($query, $locationId)

No description

Parameters

$query
$locationId

at line 68
protected applyLocationScope(Builder $builder, Model|array|int $userLocation)

Apply the Location scope query.

Parameters

Builder $builder
Model|array|int $userLocation

at line 96
protected detachLocationsOnDelete()

No description

at line 114
protected getLocationableRelationObject()

No description

at line 121
locationableIsSingleRelationType()

No description

at line 128
locationableRelationName()

No description

at line 133
locationableRelationExists()

No description