예제 #1
0
 public static function factory($id = null)
 {
     $instance = new ContentType();
     if (!empty($id)) {
         $instance->where('id', $id)->get();
     }
     return $instance;
 }