- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
public static function findById($id)
{
$model = self::where('id', $id)->get();
$count = $model->getIterator()->count();
if($count > 0) {
return $model->getIterator()->current();
}
return false;
}