\App\ScopesDeleteScope

Summary

Methods
Properties
Constants
__construct()
apply()
No public properties found
No constants found
No protected methods found
$is_delete
$delete_field
N/A
No private methods found
No private properties found
N/A

Properties

$is_delete

$is_delete : 

Type

$delete_field

$delete_field : 

Type

Methods

__construct()

__construct(\App\Models\Model  $model) 

Parameters

\App\Models\Model $model

apply()

apply(\Illuminate\Database\Eloquent\Builder  $builder, \Illuminate\Database\Eloquent\Model  $model) : void

把约束加到 Eloquent 查询构造中

Parameters

\Illuminate\Database\Eloquent\Builder $builder
\Illuminate\Database\Eloquent\Model $model