Properties

$incrementing

$incrementing : boolean

指示模型主键是否递增

Type

boolean

$id

$id : string

Type

string

$message

$message : string|null

Type

string|null

$code

$code : string

Type

string

$file

$file : string

Type

string

$line

$line : integer

Type

integer

$trace

$trace : mixed

Type

mixed

$trace_as_string

$trace_as_string : string

Type

string

$is_solve

$is_solve : boolean

是否解决 0为解决 1已解决

Type

boolean

$created_at

$created_at : \Illuminate\Support\Carbon|null

Type

\Illuminate\Support\Carbon|null

$updated_at

$updated_at : \Illuminate\Support\Carbon|null

Type

\Illuminate\Support\Carbon|null

$keyType

$keyType : string

自动递增ID的“类型”。

Type

string

$fillable

$fillable : array

可以被批量赋值的属性。

Type

array

$casts

$casts : array

The attributes that should be cast to native types.

Type

array

Methods

setId()

setId() 

设置ID

getId()

getId() 

getTraceAttribute()

getTraceAttribute(  $value) : mixed

Json转数组

Parameters

$value

Returns

mixed

setTraceAttribute()

setTraceAttribute(  $value) 

数字转Json

Parameters

$value

setTraceAsStringAttribute()

setTraceAsStringAttribute(  $value) 

自定义异常字符串

Parameters

$value

getList()

getList(array  $validated) : array

获取列表

Parameters

array $validated

Returns

array

solve()

solve() 

修正错误信息

newModelQuery()

newModelQuery() : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

newQuery()

newQuery() : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

query()

query() : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereCode()

whereCode(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereCreatedAt()

whereCreatedAt(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereFile()

whereFile(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereId()

whereId(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereIsSolve()

whereIsSolve(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereLine()

whereLine(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereMessage()

whereMessage(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereTrace()

whereTrace(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereUpdatedAt()

whereUpdatedAt(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

whereTraceAsString()

whereTraceAsString(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\ExceptionError

boot()

boot() : void

Bootstrap the model and its traits.