PHP Trait App\Traits\BaseModelTrait

Afficher le fichier Open project: sroutier/laravel-5.1-enterprise-starter-kit

Méthodes publiques

Méthode 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 méthode

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
Résultat BaseModel | null