PHP 트레잇 App\Traits\BaseModelTrait

파일 보기 프로젝트 열기: sroutier/laravel-5.1-enterprise-starter-kit

공개 메소드들

메소드 설명
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'.

메소드 상세

resolve() 공개 정적인 메소드

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
리턴 BaseModel | null