interface TranslatableContentDriver (View source)

Methods

__construct(string $activeLocale)

No description

bool
isAttributeTranslatable(string $model, string $attribute)

No description

array
getRecordAttributesToArray(Model $record)

No description

Model
makeRecord(string $model, array $data)

No description

Model
setRecordLocale(Model $record)

No description

Model
updateRecord(Model $record, array $data)

No description

Builder
applySearchConstraintToQuery(Builder $query, string $column, string $search, string $whereClause, bool|null $isCaseInsensitivityForced = null)

No description

Details

__construct(string $activeLocale)

No description

Parameters

string $activeLocale

bool isAttributeTranslatable(string $model, string $attribute)

No description

Parameters

string $model
string $attribute

Return Value

bool

array getRecordAttributesToArray(Model $record)

No description

Parameters

Model $record

Return Value

array

Model makeRecord(string $model, array $data)

No description

Parameters

string $model
array $data

Return Value

Model

Model setRecordLocale(Model $record)

No description

Parameters

Model $record

Return Value

Model

Model updateRecord(Model $record, array $data)

No description

Parameters

Model $record
array $data

Return Value

Model

Builder applySearchConstraintToQuery(Builder $query, string $column, string $search, string $whereClause, bool|null $isCaseInsensitivityForced = null)

No description

Parameters

Builder $query
string $column
string $search
string $whereClause
bool|null $isCaseInsensitivityForced

Return Value

Builder