LMongo\Eloquent\Model::create PHP Method

create() public static method

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