Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
App
Traits
BaseModelTrait
PHP Trait App\Traits\BaseModelTrait
显示文件
Open project: sroutier/laravel-5.1-enterprise-starter-kit
Public Methods
Method
Description
resolve
(
$id
,
$column
= "name" ) :
BaseModel |
null
Confirm the proper type of the model, or find the instance of the model based on the id or a column, which defaults to 'name'.
Method Details
resolve()
public
static
method
Confirm the proper type of the model, or find the instance of the model based on the id or a column, which defaults to 'name'.
public
static
resolve
(
$id
,
$column
= "name" ) :
BaseModel |
null
$id
return
BaseModel |
null