PHP Interface Spatie\ModelCleanup\GetsCleanedUp

Show file Open project: spatie/laravel-model-cleanup

Public Methods

Method Description
cleanUp ( Builder $query ) : Builder Returns a query that determines which models will get cleaned up. On cleanup, the delete method will be appended to the query.

Method Details

cleanUp() public static method

Returns a query that determines which models will get cleaned up. On cleanup, the delete method will be appended to the query.
public static cleanUp ( Builder $query ) : Builder
$query Illuminate\Database\Eloquent\Builder
return Illuminate\Database\Eloquent\Builder