class Newsletter extends Model

Traits

HasFactory

Properties

protected array $fillable

The attributes that are mass assignable.

protected array $casts

The attributes that should be casted to native types.

Methods

Builder
scopeDraft(Builder $query)

Scope a query to all draft newsletters

Builder
scopePublished(Builder $query)

Scope a query to all published newsletters

static Factory
newFactory()

Create a new factory instance for the model.

Details

at line 39
Builder scopeDraft(Builder $query)

Scope a query to all draft newsletters

Parameters

Builder $query

Return Value

Builder

at line 51
Builder scopePublished(Builder $query)

Scope a query to all published newsletters

Parameters

Builder $query

Return Value

Builder

at line 61
static protected Factory newFactory()

Create a new factory instance for the model.

Return Value

Factory