PHP Класс Askedio\SoftCascade\SoftCascade

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$direction

Открытые методы

Метод Описание
cascade ( Illuminate\Database\Eloquent\Model $model, string $direction ) : void Cascade over Eloquent items.

Приватные методы

Метод Описание
execute ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : void Execute delete, or restore.
isCascadable ( Illuminate\Database\Eloquent\Model $model ) : boolean Check if the model is enabled to cascade.
nestedRelation ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : Illuminate\Database\Eloquent\Relations\Relatio Return the relation withTrashed if being restored.
relations ( Illuminate\Database\Eloquent\Model $model, array $relations ) : mixed Iterate over the relations.
run ( Illuminate\Database\Eloquent\Model $model ) : void Run the cascade.
runNestedRelations ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : void Run nested relations.
validateRelation ( Illuminate\Database\Eloquent\Model $model, string $relation ) : void Validate the relation method exists and is a type of Eloquent Relation.

Описание методов

cascade() публичный метод

Cascade over Eloquent items.
public cascade ( Illuminate\Database\Eloquent\Model $model, string $direction ) : void
$model Illuminate\Database\Eloquent\Model
$direction string delete|restore
Результат void

Описание свойств

$direction защищенное свойство

protected $direction