PHP Trait App\Traits\BaseModelTrait

Mostra file 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