LMongo\Eloquent\Model::create PHP 메소드

create() 공개 정적인 메소드

Save a new model and return the instance.
public static create ( array $attributes ) : Model
$attributes array
리턴 Model
    public static function create(array $attributes)
    {
        $model = new static($attributes);
        $model->save();
        return $model;
    }
Model